def test_data_exists(self): ''' Testing to check if the function for checking data works well ''' self.new_data.add_password() test_data = UsersInfo(1, 1, "gmail.com", "kiriu") test_data.add_password() data_exists = UsersInfo.existing_data(1) self.assertTrue(data_exists)
def data_existing(data): ''' Function that checks if user data exists ''' return UsersInfo.existing_data(data)