#NEWLINE# def test_commit_manually_enforced_after_commit( self ) : #NEWLINE# #INDENT# '\n        Test that under commit_manually, if a transaction is committed and an operation is\n        performed later, we still require the new transaction to be closed\n        ' #NEWLINE# @ commit_manually #NEWLINE# def fake_committer( ) : #NEWLINE# #INDENT# 'Query, commit, then query again, leaving with a pending transaction' #NEWLINE# Mod . objects . count ( ) #NEWLINE# transaction . commit ( ) #NEWLINE# Mod . objects . count ( ) #NEWLINE# #UNINDENT# self . assertRaises ( TransactionManagementError , fake_committer )