diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-04-06 21:20:58 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-04-06 21:20:58 (GMT) |
commit | eb26f9590691b502db69e26ff441abec7fbd4d47 (patch) | |
tree | fadf9e78471965878ec3b306de5e1cc09e84b2af /Lib/test/test_cookie.py | |
parent | 58b6f5b53e67878fa3d9bbe4f4112cddf1ebb5cc (diff) | |
download | cpython-eb26f9590691b502db69e26ff441abec7fbd4d47.zip cpython-eb26f9590691b502db69e26ff441abec7fbd4d47.tar.gz cpython-eb26f9590691b502db69e26ff441abec7fbd4d47.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test_cookie.py')
-rw-r--r-- | Lib/test/test_cookie.py | 4 |
1 files changed, 4 insertions, 0 deletions
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) |