def test_commit_manually_enforced(self):
        @commit_manually
        def non_comitter():
            "Execute a managed transaction with read-only operations and fail to commit"
            Mod.objects.count()

        self.assertRaises(TransactionManagementError, non_comitter)
Set the context to be the scope (view in-scope items)
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/tests/transactions_regress/tests.py/TestTransactionClosing.test_commit_manually_enforced--crossover with--dataset/ETHPy150Open roglew/pappy-proxy/pappyproxy/plugins/filter.py/scope_reset