Example #1
0
 def test_check_wrong_password(self):
     user = User('login', 'pass', False)
     self.assertFalse(user.check_password('nope'))
     self.assertFalse(user.check_password(''))
Example #2
0
 def test_check_wrong_password(self):
     user = User('login', 'pass', False)
     self.assertFalse(user.check_password('nope'))
     self.assertFalse(user.check_password(''))
Example #3
0
 def test_check_password(self):
     user = User('login', 'pass', False)
     self.assertTrue(user.check_password('pass'))
Example #4
0
 def test_check_password(self):
     user = User('login', 'pass', False)
     self.assertTrue(user.check_password('pass'))