]> granicus.if.org Git - python/commit
Since this module already uses doctest-style examples, I figured I'd
authorGuido van Rossum <guido@python.org>
Fri, 6 Apr 2001 19:39:11 +0000 (19:39 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 6 Apr 2001 19:39:11 +0000 (19:39 +0000)
commit58b6f5b53e67878fa3d9bbe4f4112cddf1ebb5cc
tree9cca0b16e770158e67ed0775f641e471a1338c97
parentf95423e2659a08703e37c7fc111d0f60ad3550a4
Since this module already uses doctest-style examples, I figured I'd
add a self-test using doctest.  Results:

- The docstring needs to be a raw string because it uses \"...\".

- The oreo example was broken: the Set-Cookie output doesn't add
  quotes around "doublestuff".

- I had to change the example that prints the class of a Cookie.Cookie
  instance to avoid incorporating an arbitrary object address in the
  test output.

Pretty good score for both doctest and the doc string, I'd say!
Lib/Cookie.py