aboutsummaryrefslogtreecommitdiff
path: root/python/package_database_TEST.py
diff options
context:
space:
mode:
authorAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-07-06 02:36:12 +0000
committerAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-07-06 02:36:12 +0000
commitf5231e0a84d6f633c1a17dcfa4bb5252080e49d2 (patch)
tree88dfaea257c8ea88515dac285a0fb54399992f71 /python/package_database_TEST.py
parente5f11c45d88ca843235be6a10cc97f580f674513 (diff)
downloadpaludis-f5231e0a84d6f633c1a17dcfa4bb5252080e49d2.tar.gz
paludis-f5231e0a84d6f633c1a17dcfa4bb5252080e49d2.tar.xz
(python) Bring lots of stuff up to date.
Diffstat (limited to 'python/package_database_TEST.py')
-rwxr-xr-xpython/package_database_TEST.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/python/package_database_TEST.py b/python/package_database_TEST.py
index a5c50ce..5b88458 100755
--- a/python/package_database_TEST.py
+++ b/python/package_database_TEST.py
@@ -51,10 +51,9 @@ class TestCase_PackageDatabase(unittest.TestCase):
def test_5_query(self):
self.get_db()
pkgs = list(self.db.query(Query.Package("foo/bar"), QueryOrder.ORDER_BY_VERSION))
- self.assertEqual(pkgs, [
- PackageDatabaseEntry("foo/bar", "1.0", "testrepo"),
- PackageDatabaseEntry("foo/bar", "2.0", "testrepo"),
- ])
+ self.assertEqual([x.canonical_form(PackageIDCanonicalForm.FULL) for x in pkgs], [
+ "foo/bar-1.0::testrepo",
+ "foo/bar-2.0::testrepo"])
pkgs = list(self.db.query(Query.Matches(PackageDepSpec(">=foo/bar-10", PackageDepSpecParseMode.PERMISSIVE)),
QueryOrder.ORDER_BY_VERSION))