def METHOD_NAME(self):
    config = Configuration(
        environment='sandbox',
        merchant_id='my_merchant_id',
        public_key='public_key',
        private_key='private_key'
    )
    self.assertEqual(config.environment, braintree.Environment.Sandbox)