def setUp(self): super(TestTypeCreate, self).setUp() self.types_mock.create.return_value = fakes.FakeResource( None, copy.deepcopy(volume_fakes.TYPE), loaded=True) # Get the command object to test self.cmd = volume_type.CreateVolumeType(self.app, None)
def setUp(self): super(TestTypeCreate, self).setUp() self.new_volume_type = volume_fakes.FakeType.create_one_type() self.data = ( self.new_volume_type.description, self.new_volume_type.id, self.new_volume_type.name, ) self.types_mock.create.return_value = self.new_volume_type # Get the command object to test self.cmd = volume_type.CreateVolumeType(self.app, None)