[ckan-changes] commit/ckan: dread: [tests][xs]: Avoid obscure test failure, through specifying exact ordering of packages in group, which is not a requirement.

Bitbucket commits-noreply at bitbucket.org
Thu Jun 23 15:45:46 UTC 2011


1 new changeset in ckan:

http://bitbucket.org/okfn/ckan/changeset/edd8ee955316/
changeset:   edd8ee955316
user:        dread
date:        2011-06-23 17:45:20
summary:     [tests][xs]: Avoid obscure test failure, through specifying exact ordering of packages in group, which is not a requirement.
affected #:  1 file (10 bytes)

--- a/ckan/tests/models/test_group.py	Thu Jun 23 12:30:51 2011 +0100
+++ b/ckan/tests/models/test_group.py	Thu Jun 23 16:45:20 2011 +0100
@@ -40,7 +40,7 @@
         assert grp.title == u'Russian Group'
         anna = model.Package.by_name(u'annakarenina')
         war = model.Package.by_name(u'warandpeace')
-        assert grp.packages == [anna, war], grp.packages
+        assert set(grp.packages) == set((anna, war)), grp.packages
         assert grp in anna.groups

Repository URL: https://bitbucket.org/okfn/ckan/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list