def test_check_credentials(self): """ method to test if a credential really exists in the cerdentials list """ self.new_credentials.save_credentials() test_credentials = Credentials("toni", "twitter", "tweetme:)") test_credentials.save_credentials() credential_exist = Credentials.check_credential_existence("twitter") self.assertTrue(credential_exist)
def check_credential(account_name): return Credentials.check_credential_existence(account_name)