def test_commit_manually_commit_ok(self):
        @commit_manually
        def committer():
            """
            Perform a database query, then commit the transaction
            """
            Mod.objects.count()
            transaction.commit()

        try:
            committer()
        except TransactionManagementError:
            self.fail("Commit did not clear the transaction state")
Test that under commit_manually, a committed 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_commit_ok