def is_suburi(self, base, test):
        if base == test:
            return True
        if base[0] != test[0]:
            return False
        common = posixpath.commonprefix((base[1], test[1]))
        if len(common) == len(base[1]):
            return True
        return False
Check if test is below base in a URI tree
dataset/ETHPy150Open babble/babble/include/jython/Lib/urllib2.py/HTTPPasswordMgr.is_suburi