summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-03-21 17:30:40 -0600
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-03-21 17:30:40 -0600
commit47045b1934932b0695dd301a9c76b9dab1b03023 (patch)
tree1c70967bfd48facc3949c5f899a57180ec3cfeea /test
parent0889827f252c9f6c21c1d4f2afc704b9b303e083 (diff)
* Changed sync_all_repo to adress bug83
Diffstat (limited to 'test')
-rw-r--r--test/core.db.tar.gzbin1637 -> 1345 bytes
-rw-r--r--test/test_filter.py23
2 files changed, 23 insertions, 0 deletions
diff --git a/test/core.db.tar.gz b/test/core.db.tar.gz
index a28ea64..5eb2081 100644
--- a/test/core.db.tar.gz
+++ b/test/core.db.tar.gz
Binary files differ
diff --git a/test/test_filter.py b/test/test_filter.py
index 5127b75..1906b87 100644
--- a/test/test_filter.py
+++ b/test/test_filter.py
@@ -163,7 +163,30 @@ class pkginfo_from_descKnownValues(unittest.TestCase):
class pkginfo_from_db(unittest.TestCase):
archdb = os.path.join("./workdir")
+ example_package_list=(Package(),Package(),Package())
+ example_package_list[0].package_info={ "name" : "acl",
+ "version" : "2.2.49",
+ "release" : "2",
+ "arch" : "x86_64",
+ "license" : ("LGPL",),
+ "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"
+ "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": ""
+ "depends" : False,}
if __name__ == "__main__":
unittest.main()
+