def test_find_user_by_id(self):
     '''
     test to ensure we can find a user by their ID and access their details
     '''
     self.new_user.save_user()
     test_user = Users(2, "Mbugua", "gitu", 467587)
     test_user.save_user()
     search_user = Users.find_user_by_id(2)
     self.assertEqual(search_user.username, test_user.username)
Exemplo n.º 2
0
def find_user(user_id):
    return Users.find_user_by_id(user_id)