~cjwatson/lazr.restful/py3-doctest-print

« back to all changes in this revision

Viewing changes to src/lazr/restful/example/base/tests/collection.txt

[r=ilasc] Make pprint_entry/pprint_collection format strings in Python 3 style.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
    >>> url = quote("/cookbooks/The Joy of Cooking")
126
126
    >>> cookbook = webservice.get(url).jsonBody()
127
127
    >>> pprint_entry(cookbook)
128
 
    confirmed: u'tag:launchpad.net:2008:redacted'
129
 
    copyright_date: u'1995-01-01'
130
 
    cover_link: u'http://.../cookbooks/The%20Joy%20of%20Cooking/cover'
131
 
    cuisine: u'General'
132
 
    description: u''
 
128
    confirmed: 'tag:launchpad.net:2008:redacted'
 
129
    copyright_date: '1995-01-01'
 
130
    cover_link: 'http://.../cookbooks/The%20Joy%20of%20Cooking/cover'
 
131
    cuisine: 'General'
 
132
    description: ''
133
133
    last_printing: None
134
 
    name: u'The Joy of Cooking'
 
134
    name: 'The Joy of Cooking'
135
135
    price: 20
136
 
    recipes_collection_link: u'http://.../cookbooks/The%20Joy%20of%20Cooking/recipes'
137
 
    resource_type_link: u'http://...#cookbook'
 
136
    recipes_collection_link: 'http://.../cookbooks/The%20Joy%20of%20Cooking/recipes'
 
137
    resource_type_link: 'http://...#cookbook'
138
138
    revision_number: 0
139
 
    self_link: u'http://.../cookbooks/The%20Joy%20of%20Cooking'
140
 
    web_link: u'http://dummyurl/'
 
139
    self_link: 'http://.../cookbooks/The%20Joy%20of%20Cooking'
 
140
    web_link: 'http://dummyurl/'
141
141
 
142
142
A collection may be scoped to an element:
143
143