Show
Ignore:
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • relatorio/tests/test_api.py

    r80 r89  
    1111# This program is distributed in the hope that it will be useful, but WITHOUT 
    1212# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
    13 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more  
     13# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 
    1414# details. 
    1515# 
     
    3939        "Testing the registration" 
    4040        reporting = ReportRepository() 
    41         reporting.add_report(StubObject, 'text/plain',  
     41        reporting.add_report(StubObject, 'text/plain', 
    4242                             os.path.join('templates', 'test.tmpl')) 
    4343 
     
    4949        eq_(mime, 'text/plain') 
    5050        eq_(report.mimetype, 'text/plain') 
    51         assert_true(report.fpath.endswith(os.path.join('templates',  
     51        assert_true(report.fpath.endswith(os.path.join('templates', 
    5252                                                       'test.tmpl'))) 
    5353 
     
    105105 
    106106        a = StubObject(name='Foo') 
    107         eq_(report(o=a, time="One o'clock").render(),  
     107        eq_(report(o=a, time="One o'clock").render(), 
    108108            "Hi Foo,\nIt's One o'clock to 2 !\n") 
    109         eq_(report(o=a, time="One o'clock", y=4).render(),  
     109        eq_(report(o=a, time="One o'clock", y=4).render(), 
    110110            "Hi Foo,\nIt's One o'clock to 5 !\n") 
    111         assert_raises(TypeError, report, a)  
     111        assert_raises(TypeError, report, a) 
    112112