def test_list_hosts(self):
        result = self.controller.index(self.req)
        self.assertIn('hosts', result)
        hosts = result['hosts']
        self.assertEqual(fake_hosts.HOST_LIST, hosts)
Verify that the compute hosts are returned.
dataset/ETHPy150Open openstack/nova/nova/tests/unit/api/openstack/compute/test_hosts.py/HostTestCaseV21.test_list_hosts