def test_credential_exists(self): ''' Test to check if a credential exists in the credential_list ''' self.new_credential.save_credential() test_credential = Credentials('fennis', 'Gmail', 'mephism', 'naks222') test_credential.save_credential() credential_exists = Credentials.credential_exist("Gmail") self.assertTrue(credential_exists)
def test_credential_exists(self): """ test to check if we can return a boolean if we cannot find the credential account """ self.new_credential.save_credential() test_credential = Credentials("Test", "12338") test_credential.save_credential() credential_exists = Credentials.credential_exist("Test") self.assertTrue(credential_exists)
def check_existing_credentials(site_name): ''' Function that check if a credential account exists with that sitename and return a Boolean ''' return Credentials.credential_exist(site_name)
def check_credentials(account_name): ''' Function that checks if a credential exists. ''' return Credentials.credential_exist(account_name)\