summaryrefslogtreecommitdiff
path: root/test/test_filter.py
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-04-13 00:52:10 -0500
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-04-13 00:52:10 -0500
commit36c0426277b03c3af60e94458c11d70a32a2030c (patch)
tree532bfb100863f31664b3747d74bb31aeeeb93823 /test/test_filter.py
parent3e27d11f68571bce92138f6cbfcaecac75fa1644 (diff)
parent748600bf8dfba34b336ad642a6b26dae674db85f (diff)
Fixed more errors and refactoring
Diffstat (limited to 'test/test_filter.py')
-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")