Ignore:
Timestamp:
4 May 2012, 22:52:53 (13 years ago)
Author:
uli
Message:

Update tests.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_authentication.py

    r7811 r8351  
    120120        # we do not store plaintext passwords
    121121        self.assertTrue(self.fake_stud.password != 'secret')
    122         # passwords are stored as unicode
    123         self.assertTrue(isinstance(self.fake_stud.password, unicode))
     122        # passwords are stored as bytestream
     123        self.assertTrue(isinstance(self.fake_stud.password, basestring))
     124        self.assertFalse(isinstance(self.fake_stud.password, unicode))
    124125        return
    125126
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_authentication.py

    r7811 r8351  
    121121        # we do not store plaintext passwords
    122122        self.assertTrue(self.fake_stud.password != 'secret')
    123         # passwords are stored as unicode
    124         self.assertTrue(isinstance(self.fake_stud.password, unicode))
     123        # passwords are stored as bytestreams
     124        self.assertTrue(isinstance(self.fake_stud.password, basestring))
     125        self.assertFalse(isinstance(self.fake_stud.password, unicode))
    125126        return
    126127
Note: See TracChangeset for help on using the changeset viewer.