Exemplo n.º 1
0
 def test_user_matches(self):
     '''
     test to check if we can return a Boolean  if we cannot match username && password.
     '''
     self.new_user.save_user()
     test_user = User('2','Anne','Boleyn')
     test_user.save_user()
     user_matches = User.match_user_password('Anne','Boleyn')
     self.assertTrue(user_matches)
Exemplo n.º 2
0
def login_user(username, password):
    '''
    Function that returns all the saved users
    '''
    return User.match_user_password(username, password)