diff options
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() |