def test_detail_exists(self): ''' test to check if we can return a Boolean if we cannot find the detail. ''' self.new_detail.save_detail() test_detail = Detail("Test", "user", "2222222222", "*****@*****.**") # new detail test_detail.save_detail() detail_exists = Detail.detail_exist("2222222222") self.assertTrue(detail_exists)
def check_existing_details(password): """ Function that check if a detail exists with that password and return a Boolean """ return Detail.detail_exist(password)