← Back to team overview

launchpad-reviewers team mailing list archive

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

 

Colin Watson has proposed merging ~cjwatson/launchpad:py3-more-pprint-collection-2 into launchpad:master.

Commit message:
Use pprint_collection in more places (take 2)

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/398631

Similar to https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/397541, but I missed a spot.
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:py3-more-pprint-collection-2 into launchpad:master.
diff --git a/lib/lp/soyuz/stories/webservice/xx-packageset.txt b/lib/lp/soyuz/stories/webservice/xx-packageset.txt
index 5622b17..499d671 100644
--- a/lib/lp/soyuz/stories/webservice/xx-packageset.txt
+++ b/lib/lp/soyuz/stories/webservice/xx-packageset.txt
@@ -220,12 +220,13 @@ sorted by name.
 Package sets may include other package sets (as subsets). At this point,
 however, we only have the 'umbrella' package set. It hence has no subsets.
 
+    >>> from lazr.restful.testing.webservice import pprint_collection
     >>> response = webservice.named_get(
     ...     '/package-sets/ubuntu/hoary/umbrella', 'setsIncluded', {})
-    >>> print(response)
-    HTTP/1.1 200 Ok
-    ...
-    {"total_size": 0, "start": 0, "entries": []}
+    >>> pprint_collection(response.jsonBody())
+    start: 0
+    total_size: 0
+    ---
 
 Let's create a few more package sets and set up a package set hierarchy.