<s> """<STR_LIT>""" <EOL> from samba . dcerpc import srvsvc <EOL> from samba . tests import RpcInterfaceTestCase <EOL> class SrvsvcTests ( RpcInterfaceTestCase ) : <EOL> def setUp ( self ) : <EOL> super ( SrvsvcTests , self ) . setUp ( ) <EOL> self . conn = srvsvc . srvsvc ( "<STR_LIT>" , self . get_loadparm ( ) ) <EOL> self . server_unc = "<STR_LIT>" <EOL> def getDummyShareObject ( self ) : <EOL> share = srvsvc . NetShareInfo2 ( ) <EOL> share . name = u'<STR_LIT:test>' <EOL> share . comment = u'<STR_LIT>' <EOL> share . type = srvsvc . STYPE_DISKTREE <EOL> share . current_users = <NUM_LIT> <EOL> share . max_users = - <NUM_LIT:1> <EOL> share . password = None <EOL> share . path = u'<STR_LIT>' <EOL> share . permissions = <NUM_LIT> <EOL> return share <EOL> def test_NetShareAdd ( self ) : <EOL> self . skip ( "<STR_LIT>" ) <EOL> share = self . getDummyShareObject ( ) <EOL> self . conn . NetShareAdd ( self . server_unc , <NUM_LIT:2> , share , None ) <EOL> def test_NetShareSetInfo ( self ) : <EOL> self . skip ( "<STR_LIT>" ) <EOL> share = self . getDummyShareObject ( ) <EOL> parm_error = <NUM_LIT> <EOL> self . conn . NetShareAdd ( self . server_unc , <NUM_LIT> , share , parm_error ) <EOL> name = share . name <EOL> share . comment = "<STR_LIT>" <EOL> parm_error = self . pipe . NetShareSetInfo ( self . server_unc , name , <EOL> <NUM_LIT> , share , parm_error ) <EOL> def test_NetShareDel ( self ) : <EOL> self . skip ( "<STR_LIT>" ) <EOL> share = self . getDummyShareObject ( ) <EOL> parm_error = <NUM_LIT> <EOL> self . expectFailure ( "<STR_LIT>" , <EOL> self . conn . NetShareAdd , self . server_unc , <NUM_LIT> , share , parm_error ) <EOL> self . conn . NetShareDel ( self . server_unc , share . name , <NUM_LIT:0> ) </s>
