def test_get_vmdk_name_from_ovf(self): ovf_path = os.path.join(os.path.dirname(__file__), 'ovf.xml') with open(ovf_path) as f: ovf_descriptor = f.read() vmdk_name = images.get_vmdk_name_from_ovf(ovf_descriptor) self.assertEqual("Damn_Small_Linux-disk1.vmdk", vmdk_name)