def test_find_credentials(self): """ test to check if we can find a credential entry by account name and display the details of the credential """ self.new_credential.save_credential() test_credential = Credentials("Facebook","tess","Opp12") test_credential.save_credential() the_credential = Credentials.find_credential("Facebook") self.assertEqual(the_credential.accname,test_credential.accname)
def test_find_credentialr(self): """ test to check if we can find a credential entry by account name and display the details of the credential """ self.new_credential.save_details() test_credential = Credentials("Twitter","@hashisomadavid","Mfh45hfk") test_credential.save_details() the_credential = Credentials.find_credential("Twitter") self.assertEqual(the_credential.account,test_credential.account)
def test_find_credential(self): ''' test to check if we can find a credential by account platform and display information ''' self.new_credential.save_details() test_credentials = Credentials("Gmail", "AshleyMwangi", "Wanjiru/1") test_credentials.save_details() found_credential = Credentials.find_credential("Gmail") self.assertEqual(found_credential.account_platform, test_credentials.account_platform)
def find_credential(credentials): ''' Function that finds a contact by number and returns the contact ''' return Credentials.find_credential(credentials)
def find_credential(account): """ function that find the user credential by the account name and returns true or false """ return Credentials.find_credential(account)
def find_credentials(account_platform): ''' Function that finds existing credentials using account_platform from credentials list ''' return Credentials.find_credential(account_platform)
def find_credential(account): """ Function that finds a Credentials by an account name and returns the Credentials that belong to that account """ return Credentials.find_credential(account)