@@ -26,9 +26,6 @@ class TestNetworkSegment(network_fakes.TestNetworkV2):
2626 def setUp (self ):
2727 super (TestNetworkSegment , self ).setUp ()
2828
29- # Enable beta commands.
30- self .app .options .os_beta_command = True
31-
3229 # Get a shortcut to the network client
3330 self .network = self .app .client_manager .network
3431
@@ -81,22 +78,6 @@ def test_create_no_options(self):
8178 self .assertRaises (tests_utils .ParserException , self .check_parser ,
8279 self .cmd , [], [])
8380
84- def test_create_no_beta_commands (self ):
85- arglist = [
86- '--network' , self ._network_segment .network_id ,
87- '--network-type' , self ._network_segment .network_type ,
88- self ._network_segment .name ,
89- ]
90- verifylist = [
91- ('network' , self ._network_segment .network_id ),
92- ('network_type' , self ._network_segment .network_type ),
93- ('name' , self ._network_segment .name ),
94- ]
95- self .app .options .os_beta_command = False
96- parsed_args = self .check_parser (self .cmd , arglist , verifylist )
97- self .assertRaises (exceptions .CommandError , self .cmd .take_action ,
98- parsed_args )
99-
10081 def test_create_invalid_network_type (self ):
10182 arglist = [
10283 '--network' , self ._network_segment .network_id ,
@@ -192,18 +173,6 @@ def setUp(self):
192173 self .namespace
193174 )
194175
195- def test_delete_no_beta_commands (self ):
196- arglist = [
197- self ._network_segments [0 ].id ,
198- ]
199- verifylist = [
200- ('network_segment' , [self ._network_segments [0 ].id ]),
201- ]
202- self .app .options .os_beta_command = False
203- parsed_args = self .check_parser (self .cmd , arglist , verifylist )
204- self .assertRaises (exceptions .CommandError , self .cmd .take_action ,
205- parsed_args )
206-
207176 def test_delete (self ):
208177 arglist = [
209178 self ._network_segments [0 ].id ,
@@ -330,12 +299,6 @@ def test_list_no_option(self):
330299 self .assertEqual (self .columns , columns )
331300 self .assertEqual (self .data , list (data ))
332301
333- def test_list_no_beta_commands (self ):
334- self .app .options .os_beta_command = False
335- parsed_args = self .check_parser (self .cmd , [], [])
336- self .assertRaises (exceptions .CommandError , self .cmd .take_action ,
337- parsed_args )
338-
339302 def test_list_long (self ):
340303 arglist = [
341304 '--long' ,
@@ -391,18 +354,6 @@ def setUp(self):
391354 # Get the command object to test
392355 self .cmd = network_segment .SetNetworkSegment (self .app , self .namespace )
393356
394- def test_set_no_beta_commands (self ):
395- arglist = [
396- self ._network_segment .id ,
397- ]
398- verifylist = [
399- ('network_segment' , self ._network_segment .id ),
400- ]
401- self .app .options .os_beta_command = False
402- parsed_args = self .check_parser (self .cmd , arglist , verifylist )
403- self .assertRaises (exceptions .CommandError , self .cmd .take_action ,
404- parsed_args )
405-
406357 def test_set_no_options (self ):
407358 arglist = [
408359 self ._network_segment .id ,
@@ -485,18 +436,6 @@ def test_show_no_options(self):
485436 self .assertRaises (tests_utils .ParserException , self .check_parser ,
486437 self .cmd , [], [])
487438
488- def test_show_no_beta_commands (self ):
489- arglist = [
490- self ._network_segment .id ,
491- ]
492- verifylist = [
493- ('network_segment' , self ._network_segment .id ),
494- ]
495- self .app .options .os_beta_command = False
496- parsed_args = self .check_parser (self .cmd , arglist , verifylist )
497- self .assertRaises (exceptions .CommandError , self .cmd .take_action ,
498- parsed_args )
499-
500439 def test_show_all_options (self ):
501440 arglist = [
502441 self ._network_segment .id ,
0 commit comments