Changeset 8351 for main/waeup.kofa/trunk
- Timestamp:
- 4 May 2012, 22:52:53 (13 years ago)
- 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 120 120 # we do not store plaintext passwords 121 121 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)) 124 125 return 125 126 -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_authentication.py
r7811 r8351 121 121 # we do not store plaintext passwords 122 122 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)) 125 126 return 126 127
Note: See TracChangeset for help on using the changeset viewer.