Esempio n. 1
0
 def test_update_password(self):
     user = ItsUser("pythonut")
     user.updatePassword("pythonut", "newpythonut")
     self.assertTrue(user.isPasswordCorrect("newpythonut"))
     with self.assertRaises(Exception):
         user.updatePassword("pythonut", "newpythonut")
Esempio n. 2
0
 def test_password_checker(self):
     user = ItsUser("pythonut")
     self.assertTrue(user.isPasswordCorrect("pythonut"))
     self.assertFalse(user.isPasswordCorrect("errorPassword"))