Пример #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')