'Tests that a GET response includes an id field but the value is
the service uuid rather than the id integer primary key.'

def test_list_has_uuid_in_id_field(self):

    service_uuids = [s['uuid'] for s in fake_services_list]
    with mock.patch.object(self.controller.host_api, 'service_get_all', side_effect=fake_service_get_all(fake_services_list)):
        resp = self.controller.index(self.req)
    for service in resp['services']:
        self.assertNotIn('uuid', service)
        self.assertIn(service['id'], service_uuids)
        expected = next(iter(filter((lambda s: (s['uuid'] == service['id'])), fake_services_list)))
        self.assert_services_equal(expected, service)
