def test_credentials_exist(self): """ test to check if we can return True or False in regards to finding the credentials """ self.new_credentials.save_credentials() test_credentials = Credentials('Twitter', 'Dorothy', 'Muhonja5') test_credentials.save_credentials() credentials_exist = Credentials.credentials_exist('Twitter') self.assertTrue(credentials_exist)
def credentials_exist(phone_number): return Credentials.credentials_exist(phone_number)
def check_existing_credentials(first_name): ''' function that checks if credentials exists with that name and returns a Boolean ''' return Credentials.credentials_exist(first_name)