@skipUnlessDBFeature('requires_rollback_on_dirty_transaction')
    def test_bad_sql(self):
        execute_bad_sql = transaction.commit_on_success(self.execute_bad_sql)
        self.assertRaises(IntegrityError, execute_bad_sql)
        transaction.rollback()
Regression for #11900: If a function wrapped by commit_on_success
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/modeltests/transactions/tests.py/TransactionRollbackTests.test_bad_sql