コード例 #1
0
ファイル: test.py プロジェクト: shack1234/Password-Locker
    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)
コード例 #2
0
ファイル: password.py プロジェクト: Sam-692/Password-Locker
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)