From e8328eee48325a5e6244fb381bf2093edf18819b Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 5 Sep 2002 08:12:54 +0000 Subject: Added size directory comparison check. git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@191 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/testing/rpathtest.py | 7 +++++++ 1 file changed, 7 insertions(+) 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]: -- cgit v1.2.1