def test_credentials_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_credentials.save_credentials() test_credentials = Credentials('Twitter','Abzed','Abzedar2') test_credentials.save_credentials() credentials_exist = Credentials.credentials_exist('Twitter') self.assertTrue(credentials_exist)
def test_credentials_exist(self): self.new_credentials.save_credentials() test_credentials = Credentials('Facebook','Aoko','Mercy2x0') test_credentials.save_credentials() credentials_exist = Credentials.credentials_exist('Facebook') self.assertTrue(credentials_exist)
def check_credentials(account_name): return Credentials.credentials_exist()
def check_credentials(account_name): """ Function that check if a Credentials exists with that account name and return true or false """ return Credentials.credentials_exist()