#NEWLINE# def create_network_connected_two_slices( self ) : #NEWLINE# #INDENT# self . assert_noobj ( Network , 'test_net' ) #NEWLINE# self . execute ( ( self . get_base_templates ( ) + self . make_nodetemplate ( 'test_net' , 'tosca.nodes.network.Network' , reqs = [ ( 'testsite_slice1' , 'tosca.relationships.MemberOfSlice' ) , ( 'Private' , 'tosca.relationships.UsesNetworkTemplate' ) , ( 'testsite_slice1' , 'tosca.relationships.ConnectsToSlice' ) , ( 'testsite_slice2' , 'tosca.relationships.ConnectsToSlice' ) ] ) ) ) #NEWLINE# net = self . assert_obj ( Network , 'test_net' , owner = self . slice1 , template = self . private ) #NEWLINE# ns = NetworkSlice . objects . filter ( slice = self . slice1 , network = net ) #NEWLINE# assert ns #NEWLINE# ns = NetworkSlice . objects . filter ( slice = self . slice1 , network = net ) #NEWLINE# assert ns