@skipUnlessDBFeature('requires_rollback_on_dirty_transaction')
    def test_bad_sql(self):
        with self.assertRaises(IntegrityError):
            with transaction.commit_on_success():
                cursor = connection.cursor()
                cursor.execute("INSERT INTO transactions_reporter (first_name, last_name) VALUES ('Douglas', 'Adams');")
                transaction.set_dirty()
        transaction.rollback()
Regression for #11900: If a block wrapped by commit_on_success
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/modeltests/transactions/tests.py/TransactionContextManagerTests.test_bad_sql