Exemple #1
0
 def test__detail_exist(self):
     """
     test to check if we can return a true or false based on whether we find or can't find the detail.
     """
     self.new_detail.save_details()
     the__detail = Details("Twitter", "georgekilewa", "GeO%$#85Hj")
     the__detail.save_details()
     detail_is_found = Details.if_detail_exist("Twitter")
     self.assertTrue(detail_is_found)
Exemple #2
0
def check_details(account):
    """
    Function that check if a detail exists with that account name and return true or false

    """
    return Details.if_detail_exist(account)