commit | 58b6f5b53e67878fa3d9bbe4f4112cddf1ebb5cc | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Apr 06 19:39:11 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Apr 06 19:39:11 2001 +0000 |
tree | 9cca0b16e770158e67ed0775f641e471a1338c97 | |
parent | f95423e2659a08703e37c7fc111d0f60ad3550a4 [diff] |
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!