From 2caa9e388288e044183b45d18542a31fa1f4d4af Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 25 Jun 2002 18:04:45 +0000 Subject: 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 --- rdiff-backup/testing/rpathtest.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'rdiff-backup/testing/rpathtest.py') 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() -- cgit v1.2.1