def test_details_exists(self): ''' test to check if we can return a Boolean if we cannot find the details. ''' self.new_details.save_details() test_details = Details("", "", "", "") # new details test_details.save_details() details_exists = Details.details_exist("") self.assertTrue(details_exists)
def test_details_exists(self): ''' test to check if we can return a Boolean if we cannot find the user details. ''' self.new_details.save_details() test_details = Details("Test","user","0711223344","*****@*****.**") # new user details test_details.save_details() details_exists = Details.details_exist("0711223344") self.assertTrue(details_exists)
def check_existing_details(account): ''' Function that check if a details exists with that account and return a Boolean ''' return Details.details_exist(account)
def check_existing_detailss(account): ''' Function that check if a user details exists with that number and return a Boolean ''' return Details.details_exist(account)