diff options
author | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-09-05 08:12:54 +0000 |
---|---|---|
committer | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-09-05 08:12:54 +0000 |
commit | e8328eee48325a5e6244fb381bf2093edf18819b (patch) | |
tree | aa1da0039dff7e25358e4777da88f95ef5fdadec /rdiff-backup/testing/rpathtest.py | |
parent | 9af9bc2c12198d3250438118fd70ba6fe8d497ac (diff) | |
download | rdiff-backup-e8328eee48325a5e6244fb381bf2093edf18819b.tar.gz |
Added size directory comparison check.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@191 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing/rpathtest.py')
-rw-r--r-- | rdiff-backup/testing/rpathtest.py | 7 |
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]: |