@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()
Gets the editor context menu.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/tests/modeltests/transactions/tests_25.py/TransactionContextManagerTests.test_bad_sql--crossover with--dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/pyqode/core/api/code_edit.py/CodeEdit.get_context_menu