diff options
author | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-06-25 18:04:45 +0000 |
---|---|---|
committer | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-06-25 18:04:45 +0000 |
commit | 2caa9e388288e044183b45d18542a31fa1f4d4af (patch) | |
tree | 33af095ff4e665be96010e76cb03188e163d17a8 /rdiff-backup/testing/rpathtest.py | |
parent | aa36fa26a216b2faf89b0bbd4d90fb16fd082f38 (diff) | |
download | rdiff-backup-2caa9e388288e044183b45d18542a31fa1f4d4af.tar.gz |
Added root selection test, and modified tests to jive with new
IterTreeReducer fast_process code.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@146 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing/rpathtest.py')
-rw-r--r-- | rdiff-backup/testing/rpathtest.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/rdiff-backup/testing/rpathtest.py b/rdiff-backup/testing/rpathtest.py index d4ffdbe..46facf2 100644 --- a/rdiff-backup/testing/rpathtest.py +++ b/rdiff-backup/testing/rpathtest.py @@ -371,7 +371,16 @@ class FileAttributes(FileCopying): self.assertRaises(RPathException, RPath.copy_attribs, self.nothing, self.nowrite) - +class CheckPath(unittest.TestCase): + """Check to make sure paths generated properly""" + def testpath(self): + """Test root paths""" + root = RPath(Globals.local_connection, "/") + assert root.path == "/", root.path + bin = root.append("bin") + assert bin.path == "/bin", bin.path + bin2 = RPath(Globals.local_connection, "/bin") + assert bin.path == "/bin", bin2.path if __name__ == "__main__": unittest.main() |