

def test_is_image_extendable_raw(self):
    imgfile = tempfile.NamedTemporaryFile()
    self.mox.StubOutWithMock(utils, 'execute')
    utils.execute('e2label', imgfile)
    self.mox.ReplayAll()
    image = imgmodel.LocalFileImage(imgfile, imgmodel.FORMAT_RAW)
    self.addCleanup(imgfile.close)
    self.assertTrue(api.is_image_extendable(image))

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/virt/disk/test_api.py APITestCase.test_is_image_extendable_raw/original