def test_storage_tier_given(self): self.size.extra["storage_tier"] = "hdd" storagedevice = _StorageDevice(self.image, self.size) d = storagedevice.to_dict() self.assertEqual(d["storage_device"][0]["tier"], "hdd")
def test_storage_tier_given(self): self.size.extra['storage_tier'] = 'hdd' storagedevice = _StorageDevice(self.image, self.size) d = storagedevice.to_dict() self.assertEquals(d['storage_device'][0]['tier'], 'hdd')
def test_storage_tier_default_value(self): storagedevice = _StorageDevice(self.image, self.size) d = storagedevice.to_dict() self.assertEqual(d["storage_device"][0]["tier"], "maxiops")
def test_storage_tier_default_value(self): storagedevice = _StorageDevice(self.image, self.size) d = storagedevice.to_dict() self.assertEquals(d['storage_device'][0]['tier'], 'maxiops')