From: "Jauhien Piatlicki" <piatlicki@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/g-sorcery:master commit in: tests/
Date: Mon, 8 Jul 2013 23:53:54 +0000 (UTC) [thread overview]
Message-ID: <1373327566.5cec193a5271ef3ca4577390f7aa242df5eb71ea.jauhien@gentoo> (raw)
commit: 5cec193a5271ef3ca4577390f7aa242df5eb71ea
Author: Jauhien Piatlicki (jauhien) <piatlicki <AT> gmail <DOT> com>
AuthorDate: Mon Jul 8 23:52:46 2013 +0000
Commit: Jauhien Piatlicki <piatlicki <AT> gmail <DOT> com>
CommitDate: Mon Jul 8 23:52:46 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/g-sorcery.git;a=commit;h=5cec193a
tests/test_package_db: sort list
---
tests/test_package_db.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tests/test_package_db.py b/tests/test_package_db.py
index d491152..b2d51a2 100644
--- a/tests/test_package_db.py
+++ b/tests/test_package_db.py
@@ -72,7 +72,7 @@ class TestDummyDB(BaseTest):
categories = list(set([x.category for x in self.packages]))
for category in categories:
package_names = list(set([x.name for x in self.packages if x.category == category]))
- self.assertEqual(package_names, db.list_package_names(category))
+ self.assertEqual(package_names.sort(), db.list_package_names(category).sort())
self.assertRaises(exceptions.InvalidKeyError, db.list_package_names, 'no_such_category')
def test_list_package_versions(self):
@@ -82,8 +82,9 @@ class TestDummyDB(BaseTest):
for category in categories:
package_names = list(set([x.name for x in self.packages if x.category == category]))
for name in package_names:
- versions = [x.version for x in self.packages if x.category == category and x.name == name]
- self.assertEqual(versions, db.list_package_versions(category, name))
+ versions = [x.version for x in self.packages
+ if x.category == category and x.name == name]
+ self.assertEqual(versions.sort(), db.list_package_versions(category, name).sort())
self.assertRaises(exceptions.InvalidKeyError, db.list_package_versions, 'no_such_category', 'a')
self.assertRaises(exceptions.InvalidKeyError, db.list_package_versions,
categories[0], 'no_such_package')
next reply other threads:[~2013-07-09 23:03 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-08 23:53 Jauhien Piatlicki [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-05-04 15:50 [gentoo-commits] proj/g-sorcery:master commit in: tests/ Ulrich Müller
2021-05-04 15:50 Ulrich Müller
2021-05-04 15:50 Ulrich Müller
2013-09-18 22:52 Jauhien Piatlicki
2013-09-18 22:52 Jauhien Piatlicki
2013-09-18 22:09 Jauhien Piatlicki
2013-09-18 22:09 Jauhien Piatlicki
2013-09-18 0:57 Jauhien Piatlicki
2013-09-16 14:33 Jauhien Piatlicki
2013-09-16 0:19 Jauhien Piatlicki
2013-09-15 22:38 Jauhien Piatlicki
2013-09-15 22:38 Jauhien Piatlicki
2013-09-15 22:38 Jauhien Piatlicki
2013-07-17 15:41 Jauhien Piatlicki
2013-07-14 23:39 Jauhien Piatlicki
2013-07-02 14:48 Jauhien Piatlicki
2013-07-02 10:21 Jauhien Piatlicki
2013-06-23 0:44 Jauhien Piatlicki
2013-06-23 0:44 Jauhien Piatlicki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1373327566.5cec193a5271ef3ca4577390f7aa242df5eb71ea.jauhien@gentoo \
--to=piatlicki@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox