def test_transaction_error_code_property(self):
        """ Test ValidationError class 'transaction_error_code' property"""
        transaction = Transaction(
            amount_in_cents=1000,
            currency='USD',
            account=Account(
                account_code='transactionmock'
            )
        )

        # Mock 'save transaction' request to throw declined
        # transaction validation error
        with self.mock_request('transaction/declined-transaction.xml'):
            try:
                transaction.save()
            except __HOLE__ as e:
                error = e
        self.assertEqual(error.transaction_error_code, 'insufficient_funds')
dataset/ETHPy150Open recurly/recurly-client-python/tests/tests_errors.py/RecurlyExceptionTests.test_transaction_error_code_property