<s> '''<STR_LIT>''' <EOL> from __future__ import absolute_import <EOL> from salttesting import TestCase , skipIf <EOL> from salttesting . mock import ( <EOL> patch , <EOL> NO_MOCK , <EOL> NO_MOCK_REASON <EOL> ) <EOL> from salttesting . helpers import ensure_in_syspath <EOL> ensure_in_syspath ( '<STR_LIT>' ) <EOL> from salt . modules import sysmod <EOL> sysmod . __salt__ = { } <EOL> sysmod . __opts__ = { } <EOL> class Mockstate ( object ) : <EOL> """<STR_LIT>""" <EOL> class State ( object ) : <EOL> """<STR_LIT>""" <EOL> states = [ ] <EOL> def __init__ ( self , opts ) : <EOL> pass <EOL> class Mockrunner ( object ) : <EOL> """<STR_LIT>""" <EOL> class Runner ( object ) : <EOL> """<STR_LIT>""" <EOL> functions = [ ] <EOL> def __init__ ( self , opts ) : <EOL> pass <EOL> class Mockloader ( object ) : <EOL> """<STR_LIT>""" <EOL> flag = None <EOL> functions = [ ] <EOL> def __init__ ( self ) : <EOL> self . opts = None <EOL> self . lst = None <EOL> def returners ( self , opts , lst ) : <EOL> """<STR_LIT>""" <EOL> self . opts = opts <EOL> self . lst = lst <EOL> if self . flag : <EOL> return { } <EOL> return [ ] <EOL> def render ( self , opts , lst ) : <EOL> """<STR_LIT>""" <EOL> self . opts = opts <EOL> self . lst = lst <EOL> return { } <EOL> @ skipIf ( NO_MOCK , NO_MOCK_REASON ) <EOL> @ patch ( '<STR_LIT>' , Mockstate ( ) ) <EOL> @ patch ( '<STR_LIT>' , Mockrunner ( ) ) <EOL> @ patch ( '<STR_LIT>' , Mockloader ( ) ) <EOL> class SysmodTestCase ( TestCase ) : <EOL> '''<STR_LIT>''' <EOL> def test_doc ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertDictEqual ( sysmod . doc ( ) , { } ) <EOL> def test_state_doc ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertDictEqual ( sysmod . state_doc ( ) , { } ) <EOL> self . assertDictEqual ( sysmod . state_doc ( '<STR_LIT>' ) , { } ) <EOL> def test_runner_doc ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertDictEqual ( sysmod . runner_doc ( ) , { } ) <EOL> self . assertDictEqual ( sysmod . runner_doc ( '<STR_LIT>' ) , { } ) <EOL> def test_returner_doc ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertDictEqual ( sysmod . returner_doc ( ) , { } ) <EOL> self . assertDictEqual ( sysmod . returner_doc ( '<STR_LIT>' ) , { } ) <EOL> def test_renderer_doc ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertDictEqual ( sysmod . renderer_doc ( ) , { } ) <EOL> self . assertDictEqual ( sysmod . renderer_doc ( '<STR_LIT>' , '<STR_LIT>' ) , { } ) <EOL> def test_list_functions ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertListEqual ( sysmod . list_functions ( ) , [ ] ) <EOL> self . assertListEqual ( sysmod . list_functions ( '<STR_LIT>' ) , [ ] ) <EOL> def test_list_modules ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertListEqual ( sysmod . list_modules ( ) , [ ] ) <EOL> self . assertListEqual ( sysmod . list_modules ( '<STR_LIT>' ) , [ ] ) <EOL> def test_reload_modules ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertTrue ( sysmod . reload_modules ( ) ) <EOL> def test_argspec ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertDictEqual ( sysmod . argspec ( ) , { } ) <EOL> def test_state_argspec ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertDictEqual ( sysmod . state_argspec ( ) , { } ) <EOL> def test_returner_argspec ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertDictEqual ( sysmod . returner_argspec ( ) , { } ) <EOL> def test_runner_argspec ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertDictEqual ( sysmod . runner_argspec ( ) , { } ) <EOL> def test_list_state_functions ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertListEqual ( sysmod . list_state_functions ( ) , [ ] ) <EOL> self . assertListEqual ( sysmod . list_state_functions ( '<STR_LIT>' ) , [ ] ) <EOL> def test_list_state_modules ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertListEqual ( sysmod . list_state_modules ( ) , [ ] ) <EOL> self . assertListEqual ( sysmod . list_state_modules ( '<STR_LIT>' ) , [ ] ) <EOL> def test_list_runners ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertListEqual ( sysmod . list_runners ( ) , [ ] ) <EOL> self . assertListEqual ( sysmod . list_runners ( '<STR_LIT>' ) , [ ] ) <EOL> def test_list_runner_functions ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertListEqual ( sysmod . list_runner_functions ( ) , [ ] ) <EOL> self . assertListEqual ( sysmod . list_runner_functions ( '<STR_LIT>' ) , [ ] ) <EOL> def test_list_returners ( self ) : <EOL> '''<STR_LIT>''' <EOL> Mockloader . flag = True <EOL> self . assertListEqual ( sysmod . list_returners ( ) , [ ] ) <EOL> self . assertListEqual ( sysmod . list_returners ( '<STR_LIT>' ) , [ ] ) <EOL> def test_list_returner_functions ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertListEqual ( sysmod . list_returner_functions ( ) , [ ] ) <EOL> self . assertListEqual ( sysmod . list_returner_functions ( '<STR_LIT>' ) , <EOL> [ ] ) <EOL> def test_list_renderers ( self ) : <EOL> '''<STR_LIT>''' <EOL> self . assertListEqual ( sysmod . list_renderers ( ) , [ ] ) <EOL> self . assertListEqual ( sysmod . list_renderers ( '<STR_LIT>' ) , [ ] ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> from integration import run_tests <EOL> run_tests ( SysmodTestCase , needs_daemon = False ) </s>
