~leonardr/lazr.restful/fix-ws-accept-on-redirect

« back to all changes in this revision

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

  • Committer: Leonard Richardson
  • Date: 2010-10-25 16:31:09 UTC
  • mfrom: (154 trunk)
  • mto: This revision was merged to the branch mainline in revision 155.
  • Revision ID: leonard.richardson@canonical.com-20101025163109-se97klojbio330q3
Changed the doctest to a unit test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
445
445
    HTTP/1.1 209 Content Returned
446
446
    ...
447
447
 
448
 
Miscellaneous error checking
449
 
============================
450
 
 
451
 
A validation error that contains non-ASCII characters will be
452
 
formatted properly.
453
 
 
454
 
    >>> error = modify_cookbook('Everyday Greens',
455
 
    ...     {'cuisine' : 'No such cuisine'}, 'PATCH')
456
 
    >>> error.body
457
 
    'cuisine: Invalid value "No such cuisine". Acceptable values are... Fran\xc3\xa7aise'
458
 
 
459
448
Content negotiation during modification
460
449
=======================================
461
450