#NEWLINE# def test_transaction_commit_commits_request_transaction( self ) : #NEWLINE# #INDENT# sender = mock . Mock ( spec = [ 'app' ] ) #NEWLINE# celery . transaction_commit ( sender ) #NEWLINE# sender . app . request . tm . commit . assert_called_once_with ( )