summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_filter.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/test/test_filter.py b/test/test_filter.py
index 1906b87..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")
@@ -169,21 +172,21 @@ class pkginfo_from_db(unittest.TestCase):
"release" : "2",
"arch" : "x86_64",
"license" : ("LGPL",),
- "location": "acl-2.2.49-2-x86_64.pkg.tar.xz"
+ "location": "acl-2.2.49-2-x86_64.pkg.tar.xz",
"depends" : ("attr>=2.4.41"),}
example_package_list[1].package_info={ "name" : "glibc",
"version" : "2.13",
"release" : "4",
"arch" : "x86_64",
"license" : ("GPL","LGPL"),
- "location": "glibc-2.13-4-x86_64.pkg.tar.xz"
+ "location": "glibc-2.13-4-x86_64.pkg.tar.xz",
"depends" : ("linux-api-headers>=2.6.37","tzdata",),}
example_package_list[2].package_info={ "name" : "",
"version" : "2.2.26",
"release" : "1",
"arch" : "x86_64",
"license" : False,
- "location": ""
+ "location": "",
"depends" : False,}