summaryrefslogtreecommitdiff
path: root/rdiff-backup/testing/selectiontest.py
diff options
context:
space:
mode:
authorben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-05-20 19:26:26 +0000
committerben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-05-20 19:26:26 +0000
commit55669110eec45e22249537d3195799cf5945ad23 (patch)
treeb23b3d6c453d0a010608c8e100e99a1f15609b13 /rdiff-backup/testing/selectiontest.py
parent91a5369ef256424d0cc38434c7fd4f4aac1264bd (diff)
downloadrdiff-backup-55669110eec45e22249537d3195799cf5945ad23.tar.gz
Updated to cohere with new ParseArgs syntax
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@94 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing/selectiontest.py')
-rw-r--r--rdiff-backup/testing/selectiontest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rdiff-backup/testing/selectiontest.py b/rdiff-backup/testing/selectiontest.py
index 9b306eb..aad2a68 100644
--- a/rdiff-backup/testing/selectiontest.py
+++ b/rdiff-backup/testing/selectiontest.py
@@ -203,11 +203,11 @@ testfiles/select/1/1
class ParseArgsTest(unittest.TestCase):
"""Test argument parsing"""
- def ParseTest(self, tuplelist, indicies):
+ def ParseTest(self, tuplelist, indicies, filelists = []):
"""No error if running select on tuple goes over indicies"""
self.root = DSRPath(1, Globals.local_connection, "testfiles/select")
self.Select = Select(self.root)
- self.Select.ParseArgs(tuplelist)
+ self.Select.ParseArgs(tuplelist, filelists)
self.Select.set_iter()
assert Iter.equal(Iter.map(lambda dsrp: dsrp.index, self.Select),
iter(indicies), verbose = 1)
@@ -262,7 +262,7 @@ class ParseArgsTest(unittest.TestCase):
self.root = DSRPath(1, Globals.local_connection, "testfiles/select")
self.Select = Select(self.root)
self.Select.ParseArgs([("--include", "testfiles/select/1/1"),
- ("--exclude", "**")])
+ ("--exclude", "**")], [])
self.Select.set_iter(('1', '1'))
assert Iter.equal(Iter.map(lambda dsrp: dsrp.index, self.Select),
iter([("1", '1', '1'),