diff options
author | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-07-16 05:16:42 +0000 |
---|---|---|
committer | ben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-07-16 05:16:42 +0000 |
commit | 4c8440ee71ba819c7327913870a615186ef8d386 (patch) | |
tree | 5d4d811680e1b3fd0a3393de3d49eb9cae116481 /rdiff-backup/testing/selectiontest.py | |
parent | 6efc3610e37994c38a70cf32266e1e495035fbd3 (diff) | |
download | rdiff-backup-4c8440ee71ba819c7327913870a615186ef8d386.tar.gz |
Various changes to 0.9.3, see CHANGELOG
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@157 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing/selectiontest.py')
-rw-r--r-- | rdiff-backup/testing/selectiontest.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rdiff-backup/testing/selectiontest.py b/rdiff-backup/testing/selectiontest.py index 76af96f..f512f12 100644 --- a/rdiff-backup/testing/selectiontest.py +++ b/rdiff-backup/testing/selectiontest.py @@ -221,6 +221,18 @@ testfiles/select/1/1 select.filelist_get_sf(StringIO.StringIO("/foo/bar"), 0, "test")(root) == None + def testOtherFilesystems(self): + """Test to see if --exclude-other-filesystems works correctly""" + root = DSRPath(1, Globals.local_connection, "/") + select = Select(root) + sf = select.other_filesystems_get_sf(0) + assert sf(root) is None + assert sf(RPath(Globals.local_connection, "/usr/bin")) is None, \ + "Assumption: /usr/bin is on the same filesystem as /" + assert sf(RPath(Globals.local_connection, "/proc")) == 0, \ + "Assumption: /proc is on a different filesystem" + assert sf(RPath(Globals.local_connection, "/boot")) == 0, \ + "Assumption: /boot is on a different filesystem" class ParseArgsTest(unittest.TestCase): """Test argument parsing""" |