def test_commit_manually_rollback_ok(self):
        @commit_manually
        def roller_back():
            """
            Perform a database query, then rollback the transaction
            """
            Mod.objects.count()
            transaction.rollback()

        try:
            roller_back()
        except TransactionManagementError:
            self.fail("Rollback did not clear the transaction state")
Test that under commit_manually, a rolled-back transaction is accepted by the transaction
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/tests/transactions_regress/tests.py/TestTransactionClosing.test_commit_manually_rollback_ok