def setUp(self): super(TestTypeShow, self).setUp() self.types_mock.get.return_value = fakes.FakeResource( None, copy.deepcopy(volume_fakes.TYPE), loaded=True) # Get the command object to test self.cmd = volume_type.ShowVolumeType(self.app, None)
def setUp(self): super(TestTypeShow, self).setUp() self.volume_type = volume_fakes.FakeType.create_one_type() self.data = (None, self.volume_type.description, self.volume_type.id, True, self.volume_type.name, utils.format_dict(self.volume_type.extra_specs)) self.types_mock.get.return_value = self.volume_type # Get the command object to test self.cmd = volume_type.ShowVolumeType(self.app, None)