示例#1
0
    def test_credentials_exists(self):
        '''
        test to check if we can return a Boolean if we cannot find the contact.
        '''

        self.new_credentials.save_credentials()
        test_credentials = Credential("github", "987123")  # new contact
        test_credentials.save_credentials()

        credentials_exists = Credential.credentials_exist("987123")
        self.assertTrue(credentials_exists)
示例#2
0
    def test_credentials_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the credential.
        '''

        self.new_credentials.save_credentials()
        test_credentials = Credential("Test", "user", "0711223344",
                                      "*****@*****.**", "SecretKey")
        test_credentials.save_credentials()

        credentials_exists = Credential.credentials_exist("SecretKey")

        self.assertTrue(credentials_exists)
示例#3
0
def check_if_credentials_exists(account_name):
   '''
 	Function that checks if an account exists
    '''
   return Credential.credentials_exist(account_name)
示例#4
0
def check_existing_credentials(pwd):
    '''
    Function that check if a credentials exists with that password and return a Boolean
    '''
    return Credential.credentials_exist(pwd)
示例#5
0
def check_existing_credentials(credential):
    '''
    Function that check if a credentials for a certain site exists and return a Boolean
    '''
    return Credential.credentials_exist(credential)