def setUp(self): super(TestImageShow, self).setUp() self.images_mock.get.return_value = self._image # Get the command object to test self.cmd = image.ShowImage(self.app, None)
def setUp(self): super(TestImageShow, self).setUp() self.client.find_image = mock.Mock(return_value=self._image) # Get the command object to test self.cmd = image.ShowImage(self.app, None)
def setUp(self): super(TestImageShow, self).setUp() self.images_mock.get.return_value = fakes.FakeResource( None, copy.deepcopy(image_fakes.IMAGE), loaded=True, ) # Get the command object to test self.cmd = image.ShowImage(self.app, None)