#NEWLINE# def test_module_run_test_true( self ) : #NEWLINE# #INDENT# '\n        Tests the return of module.run state when test=True is passed in\n        ' #NEWLINE# with patch . dict ( module . __opts__ , { #NEWLINE# #INDENT# 'test' : True , #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# ret = module . run ( CMD ) #NEWLINE# comment = 'Module function {0} is set to execute' . format ( CMD ) #NEWLINE# self . assertEqual ( ret [ 'comment' ] , self )