def test_constructor_equality(self):
p = self.root.__class__(self.root)
-> assert p == self.root
def __eq__(self, other):
""" return true if path and rev attributes each match """
-> return (str(self) == str(other) and
(self.rev == other.rev or self.rev == other.rev))