Exemple #1
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_credentials()
        credential = Credential("user", "site", "pass")
        credential.save_credentials()
        credential_is_found = Credential.if_credential_exist("user")
        self.assertTrue(credential_is_found)
Exemple #2
0
def if_credential_exist(account_name):
    """
    Function that search credential with account name and if finds it returns true otherwise false
    """
    return Credential.if_credential_exist(account_name)