Exemple #1
0
 def test_credential_exist(self):
     '''
     test to check if we can return a boolean based on whether we can or can't find the credential.
     '''
     self.new_credential.save_details()
     get_credential = Credentials("instagram", "feistydory", "qwerty")
     get_credential.save_details()
     credential_is_found = Credentials.if_credential_exist("instagram")
     self.assertTrue(credential_is_found)
def check_credentials(account):
    """
    Function that check if a Credentials exists with that account name and return true or false
    """
    return Credentials.if_credential_exist(account)