def test_credential_exist(self):
     """
     test to check if we can return a true or false based on whether we find or can't find the credential.
     """
     self.new_credential.save_details()
     the_credential = Credentials("Twitter", "@hashisomadavid", "Mfh45hfk")  
     the_credential.save_details()
     credential_is_found = Credentials.if_credential_exist("Twitter")
     self.assertTrue(credential_is_found)
예제 #2
0
 def test_credential_exist(self):
     """
     Test to see return a true and false based on whether we can find or not find credential
     """
     self.new_credential.save_details()
     the_credential =Credentials("Twitter","mahan-noor","Cfhu56g")
     the_credential.save_details()
     creditial_is_found = Credentials.if_credential_exist("Twitter")
     self.assertTrue(creditial_is_found)
예제 #3
0
 def test_credential_exist(self):
     """
     test to check if we can return a true or false based on whether we find or can't find the credential.
     """
     self.new_credential.save_details()
     the_credential = Credentials("Facebook", "Jesse", "PTka3214")
     the_credential.save_details()
     credential_is_found = Credentials.if_credential_exist("Facebook")
     self.assertTrue(credential_is_found)
예제 #4
0
def check_credentials(account):
    """
    Function that checks if the credential exist
    """
    return Credentials.if_credential_exist(account)
def check_credendtials(account):
    """
    Function that check if a Credentials exists with that account name and return true or false

    """
    return Credentials.if_credential_exist(account)