def checkURL(cls, trust_root, url):
    """quick func for validating a url against a trust root.  See the
        TrustRoot class if you need more control."""
    tr = cls.parse(trust_root)
    return tr is not None and tr.validateURL(url)
