def test_svnurl(self):
p = path.svnurl('http://codespeak.net/svn/py')
assert p.check(svnurl=1)
-> self.repr_eval_test(p)
def repr_eval_test(self, p):
r = repr(p)
from py.path import local,svnurl, svnwc
y = eval(r)
-> assert y == p
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))