def METHOD_NAME(self):
    def setup_bad_configuration():
        Configuration(
            environment=braintree.Environment.Sandbox,
            merchant_id='my_merchant_id',
            public_key='',
            private_key='private_key'
        )
    self.assertRaises(ConfigurationError, setup_bad_configuration)