Merge ~cjwatson/launchpad:py3-more-pprint-collection-2 into launchpad:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: b0f08ca9e8011cbd6d03c2e2c184fdf6e4f64dde
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/launchpad:py3-more-pprint-collection-2
Merge into: launchpad:master
Diff against target: 21 lines (+5/-4)
1 file modified
lib/lp/soyuz/stories/webservice/xx-packageset.txt (+5/-4)
Reviewer Review Type Date Requested Status
Tom Wardill (community) Approve
Review via email: mp+398631@code.launchpad.net

Commit message

Use pprint_collection in more places (take 2)

Description of the change

To post a comment you must log in.
Revision history for this message
Tom Wardill (twom) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/lib/lp/soyuz/stories/webservice/xx-packageset.txt b/lib/lp/soyuz/stories/webservice/xx-packageset.txt
2index 5622b17..499d671 100644
3--- a/lib/lp/soyuz/stories/webservice/xx-packageset.txt
4+++ b/lib/lp/soyuz/stories/webservice/xx-packageset.txt
5@@ -220,12 +220,13 @@ sorted by name.
6 Package sets may include other package sets (as subsets). At this point,
7 however, we only have the 'umbrella' package set. It hence has no subsets.
8
9+ >>> from lazr.restful.testing.webservice import pprint_collection
10 >>> response = webservice.named_get(
11 ... '/package-sets/ubuntu/hoary/umbrella', 'setsIncluded', {})
12- >>> print(response)
13- HTTP/1.1 200 Ok
14- ...
15- {"total_size": 0, "start": 0, "entries": []}
16+ >>> pprint_collection(response.jsonBody())
17+ start: 0
18+ total_size: 0
19+ ---
20
21 Let's create a few more package sets and set up a package set hierarchy.
22

Subscribers

People subscribed via source and target branches

to status/vote changes: