@@ -62,11 +62,13 @@ def test_qos_associate(self):
6262 ]
6363 parsed_args = self .check_parser (self .cmd , arglist , verifylist )
6464
65- self .cmd .take_action (parsed_args )
65+ result = self .cmd .take_action (parsed_args )
66+
6667 self .qos_mock .associate .assert_called_with (
6768 volume_fakes .qos_id ,
6869 volume_fakes .type_id
6970 )
71+ self .assertIsNone (result )
7072
7173
7274class TestQosCreate (TestQos ):
@@ -205,11 +207,12 @@ def test_qos_delete_with_id(self):
205207 verifylist = [
206208 ('qos_specs' , [volume_fakes .qos_id ])
207209 ]
208-
209210 parsed_args = self .check_parser (self .cmd , arglist , verifylist )
210211
211- self .cmd .take_action (parsed_args )
212+ result = self .cmd .take_action (parsed_args )
213+
212214 self .qos_mock .delete .assert_called_with (volume_fakes .qos_id )
215+ self .assertIsNone (result )
213216
214217 def test_qos_delete_with_name (self ):
215218 arglist = [
@@ -218,11 +221,12 @@ def test_qos_delete_with_name(self):
218221 verifylist = [
219222 ('qos_specs' , [volume_fakes .qos_name ])
220223 ]
221-
222224 parsed_args = self .check_parser (self .cmd , arglist , verifylist )
223225
224- self .cmd .take_action (parsed_args )
226+ result = self .cmd .take_action (parsed_args )
227+
225228 self .qos_mock .delete .assert_called_with (volume_fakes .qos_id )
229+ self .assertIsNone (result )
226230
227231
228232class TestQosDisassociate (TestQos ):
@@ -254,11 +258,13 @@ def test_qos_disassociate_with_volume_type(self):
254258 ]
255259 parsed_args = self .check_parser (self .cmd , arglist , verifylist )
256260
257- self .cmd .take_action (parsed_args )
261+ result = self .cmd .take_action (parsed_args )
262+
258263 self .qos_mock .disassociate .assert_called_with (
259264 volume_fakes .qos_id ,
260265 volume_fakes .type_id
261266 )
267+ self .assertIsNone (result )
262268
263269 def test_qos_disassociate_with_all_volume_types (self ):
264270 self .qos_mock .get .return_value = fakes .FakeResource (
@@ -276,8 +282,10 @@ def test_qos_disassociate_with_all_volume_types(self):
276282 ]
277283 parsed_args = self .check_parser (self .cmd , arglist , verifylist )
278284
279- self .cmd .take_action (parsed_args )
285+ result = self .cmd .take_action (parsed_args )
286+
280287 self .qos_mock .disassociate_all .assert_called_with (volume_fakes .qos_id )
288+ self .assertIsNone (result )
281289
282290
283291class TestQosList (TestQos ):
@@ -352,11 +360,13 @@ def test_qos_set_with_properties_with_id(self):
352360 ]
353361 parsed_args = self .check_parser (self .cmd , arglist , verifylist )
354362
355- self .cmd .take_action (parsed_args )
363+ result = self .cmd .take_action (parsed_args )
364+
356365 self .qos_mock .set_keys .assert_called_with (
357366 volume_fakes .qos_id ,
358367 volume_fakes .qos_specs
359368 )
369+ self .assertIsNone (result )
360370
361371
362372class TestQosShow (TestQos ):
@@ -430,15 +440,16 @@ def test_qos_unset_with_properties(self):
430440 '--property' , 'iops' ,
431441 '--property' , 'foo'
432442 ]
433-
434443 verifylist = [
435444 ('qos_spec' , volume_fakes .qos_id ),
436445 ('property' , ['iops' , 'foo' ])
437446 ]
438447 parsed_args = self .check_parser (self .cmd , arglist , verifylist )
439448
440- self .cmd .take_action (parsed_args )
449+ result = self .cmd .take_action (parsed_args )
450+
441451 self .qos_mock .unset_keys .assert_called_with (
442452 volume_fakes .qos_id ,
443453 ['iops' , 'foo' ]
444454 )
455+ self .assertIsNone (result )
0 commit comments