'Verifies that HardwareProperties attributes are being set
from libosinfo.'

def test_hardware_properties_from_osinfo(self):

    img_meta = {'properties': {'os_distro': 'fedora22'}}
    img_meta = objects.ImageMeta.from_dict(img_meta)
    osinfo_obj = osinfo.HardwareProperties(img_meta)
    self.assertEqual('virtio', osinfo_obj.network_model)
    self.assertEqual('virtio', osinfo_obj.disk_model)
