[Python-checkins] CVS: python/dist/src/Lib/test test_cookie.py,1.8,1.9

Tim Peters tim_one@users.sourceforge.net
Fri, 06 Apr 2001 14:21:00 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv8844/python/dist/src/Lib/test

Modified Files:
	test_cookie.py 
Log Message:
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.


Index: test_cookie.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_cookie.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** test_cookie.py	2001/02/21 01:17:54	1.8
--- test_cookie.py	2001/04/06 21:20:58	1.9
***************
*** 4,7 ****
--- 4,8 ----
  import Cookie
  from test_support import verify, verbose
+ import doctest
  
  # Currently this only tests SimpleCookie
***************
*** 42,43 ****
--- 43,47 ----
  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)