summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rdiff-backup/testing/rpathtest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/rdiff-backup/testing/rpathtest.py b/rdiff-backup/testing/rpathtest.py
index e96a4fb..92e3355 100644
--- a/rdiff-backup/testing/rpathtest.py
+++ b/rdiff-backup/testing/rpathtest.py
@@ -299,6 +299,13 @@ class FileCopying(RPathTest):
assert not RPath.cmp(self.sl, self.fifo)
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):
"""Test copy of various files"""
for rp in [self.sl, self.rf, self.fifo, self.dir]: