'Test that under commit_manually, a rolled-back transaction is accepted by the transaction
management mechanisms'

def test_commit_manually_rollback_ok(self):

    @commit_manually
    def roller_back():
        '\n                                                Perform    a    database    query,    then    rollback    the    transaction\n                                                '
        Mod.objects.count()
        transaction.rollback()
    try:
        roller_back()
    except TransactionManagementError:
        self.fail('Rollback    did    not    clear    the    transaction    state')
