#NEWLINE# def test_create_with_project_identityv2( self ) : #NEWLINE# #INDENT# arglist = [ '--project' , identity_fakes_v2 . project_name , self . _network . name ] #NEWLINE# verifylist = [ ( 'enable' , True ) , ( 'share' , None ) , ( 'name' , self . _network . name ) , ( 'project' , identity_fakes_v2 . project_name ) , ( 'external' , False ) ] #NEWLINE# parsed_args = self . check_parser ( self . cmd , arglist , verifylist ) #NEWLINE# ( columns , data ) = self . cmd . take_action ( parsed_args ) #NEWLINE# self . network . create_network . assert_called_once_with ( ** { #NEWLINE# #INDENT# 'admin_state_up' : True , #NEWLINE# 'name' : self . _network . name , #NEWLINE# 'tenant_id' : identity_fakes_v2 . project_id , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( self . columns , columns ) #NEWLINE# self . assertEqual ( self . data , data )