def test_contact_exists(self): ''' test to check if contact exists method works ''' self.new_credentials.save_credentials() test_credentials = Credentials("john", "dribble.com", "y") test_credentials.save_credentials() credentials_exists = Credentials.credentials_exists("dribble.com") self.assertTrue(credentials_exists)
def find_credentials(name): return Credentials.credentials_exists(name)