def METHOD_NAME(burl):
    path = urlparse(burl).path
    if not path or not Path(path).exists():
        path = burl.replace("file://", "")
    bbody = Path(path).read_bytes()
    self.assertIn(b'<base href="' + to_bytes(url) + b'">', bbody)
    return True