'Check to make sure that the expected services are found in
that order in the parsed document.'

def _checkServices(self, expectedServices):

    it = iter(self._getServices())
    for (type_uri, uri) in expectedServices:
        for service in it:
            if (type_uri in service.type_uris):
                self.failUnlessEqual(service.uri, uri)
                break
        else:
            self.fail(('Did    not    find    %r    service' % (type_uri,)))
