<s> """<STR_LIT>""" <EOL> from samba import param <EOL> import samba . tests <EOL> class LoadParmTestCase ( samba . tests . TestCase ) : <EOL> def test_init ( self ) : <EOL> file = param . LoadParm ( ) <EOL> self . assertTrue ( file is not None ) <EOL> def test_length ( self ) : <EOL> file = param . LoadParm ( ) <EOL> self . assertEquals ( <NUM_LIT:0> , len ( file ) ) <EOL> def test_set_workgroup ( self ) : <EOL> file = param . LoadParm ( ) <EOL> file . set ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> self . assertEquals ( "<STR_LIT>" , file . get ( "<STR_LIT>" ) ) <EOL> def test_is_mydomain ( self ) : <EOL> file = param . LoadParm ( ) <EOL> file . set ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> self . assertTrue ( file . is_mydomain ( "<STR_LIT>" ) ) <EOL> self . assertFalse ( file . is_mydomain ( "<STR_LIT>" ) ) <EOL> def test_is_myname ( self ) : <EOL> file = param . LoadParm ( ) <EOL> file . set ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> self . assertTrue ( file . is_myname ( "<STR_LIT>" ) ) <EOL> self . assertFalse ( file . is_myname ( "<STR_LIT>" ) ) <EOL> def test_load_default ( self ) : <EOL> file = param . LoadParm ( ) <EOL> file . load_default ( ) <EOL> def test_section_nonexistent ( self ) : <EOL> samba_lp = param . LoadParm ( ) <EOL> samba_lp . load_default ( ) <EOL> self . assertRaises ( KeyError , samba_lp . __getitem__ , "<STR_LIT>" ) </s>
