

def test_required_data_cannot_be_overridden(self):
    try:
        client_token = TestHelper.generate_decoded_client_token({
            'merchant_id': '1234',
        })
        self.fail('Should have raised exception!')
    except Exception as e:
        self.assertEqual("'Invalid keys: merchant_id'", str(e))

dataset/ETHPy150Open braintree/braintree_python/tests/integration/test_client_token.py TestClientToken.test_required_data_cannot_be_overridden/original