

def test_error_on_missing_client_id(self):
    with self.assertRaises(ConfigurationError) as error:
        parser = CredentialsParser(client_id=None, client_secret='client_secret$development$integration_client_secret')
        parser.parse_client_credentials()
    config_error = error.exception
    self.assertIn('Missing client_id', str(config_error))

dataset/ETHPy150Open braintree/braintree_python/tests/integration/test_credentials_parser.py TestCredentialsParser.test_error_on_missing_client_id/original