Changeset 16818 for main/waeup.kofa/trunk/src/waeup/kofa/utils/tests
- Timestamp:
- 21 Feb 2022, 06:21:10 (3 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/utils/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/utils/tests/test_converters.py
r14008 r16818 200 200 contact = Contact() 201 201 contact.age = 33 202 input_data = dict(name=' Rudi', age='99')202 input_data = dict(name=' Rudi ', age=' 99 ') 203 203 converter = IObjectConverter(IContact) # a converter to IContact 204 204 err, inv_err, data = converter.fromStringDict( … … 283 283 def test_textline(self): 284 284 contact = Contact() 285 input_data = dict(name=' Rudi')285 input_data = dict(name=' Rudi ') 286 286 converter = IObjectConverter(IContact) # a converter to IContact 287 287 err, inv_err, data = converter.fromStringDict( … … 357 357 # pass string ``contact`` instead of a real object 358 358 err, inv_err, data = converter.fromStringDict( 359 dict(name=' Gabi', age='23'), 'contact')359 dict(name=' Gabi ', age='23 '), 'contact') 360 360 self.assertEqual(data['age'], 23) 361 361 self.assertEqual(data['name'], u'Gabi') -
main/waeup.kofa/trunk/src/waeup/kofa/utils/tests/test_helpers.py
r14948 r16818 545 545 "FAC3,Fäcülty 3,school\n" 546 546 ).splitlines() 547 self.assertEqual(helpers.check_csv_charset(csv), -1)547 self.assertEqual(helpers.check_csv_charset(csv), None) 548 548 549 549 class MemInfoTestCase(unittest.TestCase):
Note: See TracChangeset for help on using the changeset viewer.