This is a small diff that fixes a spurious test, as a few line below the test is using both display_name and name:
>>> for project in project_entries[:5]: ... print "%s (%s)" % (project['display_name'], project['name']) APTonCD (aptoncd) Arch mirrors (arch-mirrors) Bazaar (bazaar) Bazaar (bzr) Derby (derby)
=== modified file 'lib/lp/registry/stories/webservice/xx-project-registry.txt' --- lib/lp/registry/stories/webservice/xx-project-registry.txt 2010-03-08 09:34:22 +0000 +++ lib/lp/registry/stories/webservice/xx-project-registry.txt 2010-03-08 10:07:31 +0000 @@ -500,7 +500,7 @@ >>> project_collection = webservice.get("/projects?ws.size=75").jsonBody()
>>> project_entries = sorted( - ... project_collection['entries'], key=itemgetter('display_name')) + ... project_collection['entries'], key=itemgetter('display_name','name')) >>> len(project_entries) 25
« Back to merge proposal
This is a small diff that fixes a spurious test, as a few line below the test is using both display_name and name:
>>> for project in project_ entries[ :5]: 'display_ name'], project['name'])
... print "%s (%s)" % (project[
APTonCD (aptoncd)
Arch mirrors (arch-mirrors)
Bazaar (bazaar)
Bazaar (bzr)
Derby (derby)
=== modified file 'lib/lp/ registry/ stories/ webservice/ xx-project- registry. txt' registry/ stories/ webservice/ xx-project- registry. txt 2010-03-08 09:34:22 +0000 registry/ stories/ webservice/ xx-project- registry. txt 2010-03-08 10:07:31 +0000 get("/projects? ws.size= 75").jsonBody( )
--- lib/lp/
+++ lib/lp/
@@ -500,7 +500,7 @@
>>> project_collection = webservice.
>>> project_entries = sorted( collection[ 'entries' ], key=itemgetter( 'display_ name')) collection[ 'entries' ], key=itemgetter( 'display_ name',' name')) entries)
- ... project_
+ ... project_
>>> len(project_
25