def contains(self, other):
        if self == other:
            return 1
        if not isinstance(other, DistinguishedName):
            other=DistinguishedName(other)
        its=list(other.split())
        mine=list(self.split())

        while mine and its:
            m=mine.pop()
            i=its.pop()
            if m!=i:
                return 0
        if mine:
            return 0
        return 1
Does the tree rooted at DN contain or equal the other DN.
dataset/ETHPy150Open antong/ldaptor/ldaptor/protocols/ldap/distinguishedname.py/DistinguishedName.contains