<s> from __future__ import absolute_import <EOL> import sys <EOL> from salttesting import skipIf <EOL> from salttesting . helpers import ensure_in_syspath <EOL> ensure_in_syspath ( '<STR_LIT>' ) <EOL> import integration <EOL> class SysctlModuleTest ( integration . ModuleCase ) : <EOL> def setUp ( self ) : <EOL> super ( SysctlModuleTest , self ) . setUp ( ) <EOL> ret = self . run_function ( '<STR_LIT>' , [ '<STR_LIT>' ] ) <EOL> if not ret : <EOL> self . skipTest ( '<STR_LIT>' ) <EOL> def test_show ( self ) : <EOL> ret = self . run_function ( '<STR_LIT>' ) <EOL> self . assertIsInstance ( ret , dict , '<STR_LIT>' ) <EOL> self . assertGreater ( len ( ret ) , <NUM_LIT:10> , '<STR_LIT>' ) <EOL> @ skipIf ( not sys . platform . startswith ( '<STR_LIT>' ) , '<STR_LIT>' ) <EOL> def test_show_linux ( self ) : <EOL> ret = self . run_function ( '<STR_LIT>' ) <EOL> self . assertIn ( '<STR_LIT>' , ret , '<STR_LIT>' ) <EOL> @ skipIf ( not sys . platform . startswith ( '<STR_LIT>' ) , '<STR_LIT>' ) <EOL> def test_show_freebsd ( self ) : <EOL> ret = self . run_function ( '<STR_LIT>' ) <EOL> self . assertIn ( '<STR_LIT>' , ret , '<STR_LIT>' ) <EOL> self . assertGreater ( ret . get ( '<STR_LIT>' ) . splitlines ( ) , <EOL> <NUM_LIT:1> , <EOL> '<STR_LIT>' ) <EOL> @ skipIf ( not sys . platform . startswith ( '<STR_LIT>' ) , '<STR_LIT>' ) <EOL> def test_show_openbsd ( self ) : <EOL> ret = self . run_function ( '<STR_LIT>' ) <EOL> self . assertIn ( '<STR_LIT>' , ret , '<STR_LIT>' ) <EOL> self . assertEqual ( <EOL> ret . get ( '<STR_LIT>' ) , '<STR_LIT>' , '<STR_LIT>' <EOL> ) <EOL> @ skipIf ( not sys . platform . startswith ( '<STR_LIT>' ) , '<STR_LIT>' ) <EOL> def test_show_darwin ( self ) : <EOL> ret = self . run_function ( '<STR_LIT>' ) <EOL> self . assertIn ( '<STR_LIT>' , ret , '<STR_LIT>' ) <EOL> self . assertEqual ( <EOL> ret . get ( '<STR_LIT>' ) , '<STR_LIT>' , '<STR_LIT>' <EOL> ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> from integration import run_tests <EOL> run_tests ( SysctlModuleTest ) </s>
