Commit abd9b89f authored by ben's avatar ben

Added size directory comparison check.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@191 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent ba1b31b9
...@@ -299,6 +299,13 @@ class FileCopying(RPathTest): ...@@ -299,6 +299,13 @@ class FileCopying(RPathTest):
assert not RPath.cmp(self.sl, self.fifo) assert not RPath.cmp(self.sl, self.fifo)
assert not RPath.cmp(self.dir, self.sl) assert not RPath.cmp(self.dir, self.sl)
def testDirSizeComp(self):
"""Make sure directories can be equal,
even if they are of different sizes"""
smalldir = RPath(Globals.local_connection, "testfiles/dircomptest/1")
bigdir = RPath(Globals.local_connection, "testfiles/dircomptest/2")
assert smalldir == bigdir
def testCopy(self): def testCopy(self):
"""Test copy of various files""" """Test copy of various files"""
for rp in [self.sl, self.rf, self.fifo, self.dir]: for rp in [self.sl, self.rf, self.fifo, self.dir]:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment