@@ -352,26 +352,26 @@ def test_cancel_host_abort(self):
352352 self .assertEqual (result .exit_code , 2 )
353353 self .assertIsInstance (result .exception , exceptions .CLIAbort )
354354
355- def test_cancel_all_guests (self ):
355+ def test_cancel_guests (self ):
356356 guests = self .set_mock ('SoftLayer_Virtual_DedicatedHost' , 'getGuests' )
357357 guests .return_value = [{'id' : 987 }, {'id' : 654 }]
358358
359- result = self .run_command (['--really' , 'dedicatedhost' , 'cancel-all- guests' , '12345' ])
359+ result = self .run_command (['--really' , 'dedicatedhost' , 'cancel-guests' , '12345' ])
360360 self .assert_no_fail (result )
361361
362362 self .assertEqual (str (result .output ), 'All guests into the dedicated host 12345 were cancelled\n ' )
363363
364- def test_cancel_all_guests_empty_list (self ):
364+ def test_cancel_guests_empty_list (self ):
365365 guests = self .set_mock ('SoftLayer_Virtual_DedicatedHost' , 'getGuests' )
366366 guests .return_value = []
367367
368- result = self .run_command (['--really' , 'dedicatedhost' , 'cancel-all- guests' , '12345' ])
368+ result = self .run_command (['--really' , 'dedicatedhost' , 'cancel-guests' , '12345' ])
369369 self .assert_no_fail (result )
370370
371371 self .assertEqual (str (result .output ), 'There is not any guest into the dedicated host 12345\n ' )
372372
373- def test_cancel_all_guests_abort (self ):
374- result = self .run_command (['dedicatedhost' , 'cancel' , '12345' ])
373+ def test_cancel_guests_abort (self ):
374+ result = self .run_command (['dedicatedhost' , 'cancel-guests ' , '12345' ])
375375 self .assertEqual (result .exit_code , 2 )
376376
377377 self .assertIsInstance (result .exception , exceptions .CLIAbort )
0 commit comments