示例#1
0
    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")
示例#2
0
    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')
示例#3
0
    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")
示例#4
0
    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')