def test_auth_users(self): ''' checks if username and password matches ''' self.new_user.save_user() test_user = User('6561', 'scooby', 'doo') test_user.save_user() auth_users = User.auth_user('scooby', 'doo') self.assertTrue(auth_users)
def authenticate_user(usr_name, pword): ''' function that checks whether a user is a valid user ''' return User.auth_user(usr_name, pword)