def test_check_wrong_password(self): user = User('login', 'pass', False) self.assertFalse(user.check_password('nope')) self.assertFalse(user.check_password(''))
def test_check_password(self): user = User('login', 'pass', False) self.assertTrue(user.check_password('pass'))