def test_find_user(self): ''' this test case to make sure a user can be found to confirm they are who they say they are ''' self.new_user.user_save() test_user = UserInfo('Jeremy', 'Test') test_user.user_save() found_user = UserInfo.find_user('Jeremy') self.assertEqual(found_user.username, test_user.username)
def search_user(username): ''' Function to search if a user exists ''' return UserInfo.find_user(username)