'Test that under commit_manually, if a transaction is committed and an operation is
performed later, we still require the new transaction to be closed'

def test_commit_manually_enforced_after_commit(self):

    @commit_manually
    def fake_committer():
        'Query,    commit,    then    query    again,    leaving    with    a    pending    transaction'
        _ = Mod.objects.count()
        transaction.commit()
        _ = Mod.objects.count()
    self.assertRaises(TransactionManagementError, fake_committer)
