def test_check_user_existence(self): ''' test to check if user exists in user_list ''' self.new_user.save_user() test_user = Users(2, "Mbugua", "gitu", 467587) test_user.save_user() user_exists = Users.check_user_existence(2) self.assertTrue(user_exists)
def check_users(user_id): return Users.check_user_existence(user_id)