def setUp(self): super(TestQosDelete, self).setUp() self.qos_mock.get = ( volume_fakes.FakeQos.get_qoses(self.qos_specs)) # Get the command object to test self.cmd = qos_specs.DeleteQos(self.app, None)
def setUp(self): super(TestQosDelete, self).setUp() self.qos_mock.get.return_value = fakes.FakeResource( None, copy.deepcopy(volume_fakes.QOS), loaded=True, ) # Get the command object to test self.cmd = qos_specs.DeleteQos(self.app, None)
def setUp(self): super(TestQosDelete, self).setUp() self.qos_mock.get.return_value = self.qos_spec # Get the command object to test self.cmd = qos_specs.DeleteQos(self.app, None)