summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_filter.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/test_filter.py b/test/test_filter.py
index 5601d57..b6d5766 100644
--- a/test/test_filter.py
+++ b/test/test_filter.py
@@ -142,7 +142,8 @@ class generateRsyncBlacklist(unittest.TestCase):
self.assertEqual(listado("blacklist_sample"),["alex","gmime22"])
def testExcludeFiles(self):
- a=generate_exclude_list_from_blacklist(self.example_package_list,listado("blacklist_sample"),debug=True)
+ a=rsyncBlacklist_from_blacklist(self.example_package_list,
+ listado("blacklist_sample"))
b=[self.example_package_list[0]["location"],self.example_package_list[2]["location"]]
self.assertEqual(a,b)
@@ -155,7 +156,9 @@ class pkginfo_from_descKnownValues(unittest.TestCase):
"license" : "GPL",
"location": "binutils-2.21-4-x86_64.pkg.tar.xz",
"depends" : False,}
- pkggen=pkginfo_from_desc("desc")
+ fsock=open("desc")
+ pkggen=pkginfo_from_desc(fsock.read())
+ fsock.close()
def testPkginfoFromDesc(self):
if self.pkggen is None:
self.fail("return value is None")