#NEWLINE# def test_a2dismod_disabled( self ) : #NEWLINE# #INDENT# '\n        Test if it runs a2dismod for the given module.\n        ' #NEWLINE# mock = MagicMock ( return_value = 0 ) #NEWLINE# with patch . dict ( deb_apache . __salt__ , { #NEWLINE# #INDENT# 'cmd.retcode' : self , #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# self . assertEqual ( deb_apache . a2dismod ( 'vhost_alias' ) , { #NEWLINE# #INDENT# 'Name' : 'Apache2 Disable Mod' , #NEWLINE# 'Mod' : 'vhost_alias' , #NEWLINE# 'Status' : 'Mod vhost_alias disabled' , #NEWLINE# #UNINDENT# } )