#NEWLINE# @ skipUnlessDBFeature ( 'supports_transactions' ) #NEWLINE# def test_commit_on_success_with_using( self ) : #NEWLINE# #INDENT# '\n        The commit_on_success decorator also works with a using argument.\n        ' #NEWLINE# using_committed_on_success = transaction . commit_on_success ( using = 'default' ) ( using_committed_on_success . create_a_reporter_then_fail ) #NEWLINE# self . assertRaises ( Exception , using_committed_on_success , 'Dirk' , 'Gently' ) #NEWLINE# self . assertEqual ( Reporter . objects . count ( ) , 0 )