~cjwatson/lazr.restful/test-fixes

« back to all changes in this revision

Viewing changes to src/lazr/restful/docs/webservice-marshallers.txt

  • Committer: Colin Watson
  • Date: 2018-09-28 15:40:10 UTC
  • Revision ID: cjwatson@canonical.com-20180928154010-050whk8j5i78rv8b
Don't rely on set iteration order in tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
849
849
    (1, 2, 3)
850
850
    >>> marshalled_set = set_marshaller.marshall_from_json_data(
851
851
    ...     ['Vegetarian', 'Dessert'])
852
 
    >>> marshalled_set
853
 
    set([<Item Cuisine.DESSERT, ...>, <Item Cuisine.VEGETARIAN, ...>])
 
852
    >>> type(marshalled_set)
 
853
    <type 'set'>
 
854
    >>> sorted(marshalled_set)
 
855
    [<Item Cuisine.VEGETARIAN, ...>, <Item Cuisine.DESSERT, ...>]
854
856
 
855
857
    >>> result = choice_list_marshaller.marshall_from_request(
856
858
    ...     [u'Vegetarian', u'General'])