Skip to content

Commit 4a82445

Browse files
committed
fix unittests for cancel-guest
1 parent 72d0843 commit 4a82445

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/CLI/modules/dedicatedhost_tests.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)