def setUp(self): super(TestVolumeSet, self).setUp() self.volumes_mock.get.return_value = self._volume self.volumes_mock.update.return_value = self._volume # Get the command object to test self.cmd = volume.SetVolume(self.app, None)
def setUp(self): super(TestVolumeSet, self).setUp() self.volumes_mock.get.return_value = fakes.FakeResource( None, copy.deepcopy(volume_fakes.VOLUME), loaded=True, ) self.volumes_mock.update.return_value = fakes.FakeResource( None, copy.deepcopy(volume_fakes.VOLUME), loaded=True, ) # Get the command object to test self.cmd = volume.SetVolume(self.app, None)