From eb26f9590691b502db69e26ff441abec7fbd4d47 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Fri, 6 Apr 2001 21:20:58 +0000 Subject: Since Guido fiddled Cookie.py to work with doctest, it's a Good Thing to have the std test suite exercise the Cookie doctests too. --- Lib/test/output/test_cookie | 1 + Lib/test/test_cookie.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Lib/test/output/test_cookie b/Lib/test/output/test_cookie index c04bfee..64b9d04 100644 --- a/Lib/test/output/test_cookie +++ b/Lib/test/output/test_cookie @@ -29,3 +29,4 @@ Set-Cookie: Customer="WILE_E_COYOTE"; Path=/acme; // end hiding --> +If anything blows up after this line, it's from Cookie's doctest. diff --git a/Lib/test/test_cookie.py b/Lib/test/test_cookie.py index df592f3..2063dbf 100644 --- a/Lib/test/test_cookie.py +++ b/Lib/test/test_cookie.py @@ -3,6 +3,7 @@ from test_support import verify import Cookie from test_support import verify, verbose +import doctest # Currently this only tests SimpleCookie @@ -41,3 +42,6 @@ C.load('Customer="WILE_E_COYOTE"; Version="1"; Path="/acme"') verify(C['Customer'].value == 'WILE_E_COYOTE') verify(C['Customer']['version'] == '1') verify(C['Customer']['path'] == '/acme') + +print "If anything blows up after this line, it's from Cookie's doctest." +doctest.testmod(Cookie) -- cgit v0.12