def test_check_authenticate_user(self):
     '''
     test to authenticate user
     '''
     self.new_user.save_user()
     test_user = Users(2, "Mbugua", "gitu", 467587)
     test_user.save_user()
     user_authenticated = Users.authenticate_user(1, "nish", 12345)
     self.assertTrue(user_authenticated)
Example #2
0
def authenticate_users(user_id, username, user_password):
    return Users.authenticate_user(user_id, username, user_password)