Changeset 15258 for main/waeup.ikoba/trunk/src/waeup/ikoba/utils/tests
- Timestamp:
- 30 Nov 2018, 07:34:44 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/utils/tests/test_helpers.py
r12434 r15258 533 533 'some text that \n' 534 534 '\n' # this empty line will break 535 'is not a csv file 535 'is not a csv file\n' + chr(0x92) + '\n' 536 536 ).splitlines() 537 537 self.assertEqual(helpers.check_csv_charset(csv), 2) 538 539 def test_invalid_data3(self): 540 csv = ( 541 "code,title,title_prefix\n" 542 "FAC1,Faculty 1,faculty\n" 543 "FAC2,Faculty 2 ,institute\n" 544 "FAC3,Fäcülty 3,school\n" 545 ).splitlines() 546 self.assertEqual(helpers.check_csv_charset(csv), -1) 538 547 539 548
Note: See TracChangeset for help on using the changeset viewer.