'Test weigher with a no PCI device instance on no PCI device hosts.
Ensure that the host with no PCI devices receives the highest
weighting.'

def test_multiplier_no_pci_empty_hosts(self):

    hosts = [('host1', 'node1', [3, 1]), ('host2', 'node2', [])]
    hostinfo_list = self._get_all_hosts(hosts)
    spec_obj = objects.RequestSpec(pci_requests=None)
    weighed_host = self._get_weighed_hosts(hostinfo_list, spec_obj)[0]
    self.assertEqual(1.0, weighed_host.weight)
    self.assertEqual('host2', weighed_host.obj.host)
