mirror of
https://github.com/python/cpython
synced 2024-10-05 15:25:15 +00:00
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.
This commit is contained in:
parent
58b6f5b53e
commit
eb26f95906
|
@ -29,3 +29,4 @@ Set-Cookie: Customer="WILE_E_COYOTE"; Path=/acme;
|
|||
// end hiding -->
|
||||
</script>
|
||||
|
||||
If anything blows up after this line, it's from Cookie's doctest.
|
||||
|
|
|
@ -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 @@
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue