Ignore:
Timestamp:
18 Jan 2018, 07:34:42 (7 years ago)
Author:
Henrik Bettermann
Message:

Do not allow uploading data with trailing whitespaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/tests/test_helpers.py

    r12433 r14939  
    537537        self.assertEqual(helpers.check_csv_charset(csv), 2)
    538538
     539
     540    def test_invalid_data3(self):
     541        csv = (
     542            "code,title,title_prefix\n"
     543            "FAC1,Faculty 1,faculty\n"
     544            "FAC2,Faculty 2 ,institute\n"
     545            "FAC3,Fäcülty 3,school\n"
     546            ).splitlines()
     547        self.assertEqual(helpers.check_csv_charset(csv), -1)
    539548
    540549class MemInfoTestCase(unittest.TestCase):
Note: See TracChangeset for help on using the changeset viewer.