#NEWLINE# def create_ch_slice( self ) : #NEWLINE# #INDENT# '\n        Code mostly copied from GENI test harness from BBN.\n        ' #NEWLINE# import gcf.sfa.trust.credential as cred #NEWLINE# slice_cred_string = wrap_xmlrpc_call ( self . ch_client . CreateSlice , [ ] , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , test_settings . TIMEOUT ) #NEWLINE# slice_credential = cred . Credential ( string = slice_cred_string ) #NEWLINE# slice_gid = slice_credential . get_gid_object ( ) #NEWLINE# slice_urn = slice_gid . get_urn ( ) #NEWLINE# credentials = [ slice_cred_string ] #NEWLINE# return ( slice_urn , credentials )