~sambuddhabasu1/mailman/fix_mailman_run_error

« back to all changes in this revision

Viewing changes to src/mailman/rest/docs/helpers.rst

  • Committer: Barry Warsaw
  • Date: 2014-11-07 01:39:25 UTC
  • mto: This revision was merged to the branch mainline in revision 7260.
  • Revision ID: barry@list.org-20141107013925-6fswotxk5tvfnaci
When we switch to tox, we'll get hash randomization, which breaks many tests.
While I'm shipping a tox.ini, do not yet use tox to run the tests, unless you
want to help fix the randomizations.

In the meantime, I'm also adding a few randomization fixes, and updating to
the latest falcon git trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
    >>> resource = dict(geddy='bass', alex='guitar', neil='drums')
46
46
    >>> json_data = etag(resource)
47
47
    >>> print(resource['http_etag'])
48
 
    "43942176d8d5bb4414ccf35e2720ccd5251e66da"
 
48
    "96e036d66248cab746b7d97047e08896fcfb2493"
49
49
 
50
50
For convenience, the etag function also returns the JSON representation of the
51
51
dictionary after tagging, since that's almost always what you want.
58
58
    >>> dump_msgdata(data)
59
59
    alex     : guitar
60
60
    geddy    : bass
61
 
    http_etag: "43942176d8d5bb4414ccf35e2720ccd5251e66da"
 
61
    http_etag: "96e036d66248cab746b7d97047e08896fcfb2493"
62
62
    neil     : drums
63
63
 
64
64