[Python-checkins] python/dist/src/Lib/email/test test_email_codecs.py,1.3.8.1,1.3.8.2

bwarsaw@users.sourceforge.net bwarsaw@users.sourceforge.net
Sun, 02 Mar 2003 23:02:04 -0800


Update of /cvsroot/python/python/dist/src/Lib/email/test
In directory sc8-pr-cvs1:/tmp/cvs-serv7092

Modified Files:
      Tag: folding-reimpl-branch
	test_email_codecs.py 
Log Message:
Update a test but see the BAW comment.


Index: test_email_codecs.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/test/test_email_codecs.py,v
retrieving revision 1.3.8.1
retrieving revision 1.3.8.2
diff -C2 -d -r1.3.8.1 -r1.3.8.2
*** test_email_codecs.py	2 Mar 2003 03:35:53 -0000	1.3.8.1
--- test_email_codecs.py	3 Mar 2003 07:02:02 -0000	1.3.8.2
***************
*** 27,31 ****
          h.append(jhello, j)
          h.append(ghello, g)
!         eq(h.encode(), 'Hello World! =?iso-2022-jp?b?GyRCJU8lbSE8JW8hPCVrJUkhKhsoQg==?=\n =?iso-8859-1?q?Gr=FC=DF_Gott!?=')
          eq(decode_header(h.encode()),
             [('Hello World!', None),
--- 27,38 ----
          h.append(jhello, j)
          h.append(ghello, g)
!         # BAW: This used to -- and maybe should -- fold the two iso-8859-1
!         # chunks into a single encoded word.  However it doesn't violate the
!         # standard to have them as two encoded chunks and maybe it's
!         # reasonable <wink> for each .append() call to result in a separate
!         # encoded word.
!         eq(h.encode(), """\
! Hello World! =?iso-2022-jp?b?GyRCJU8lbSE8JW8hPCVrJUkhKhsoQg==?=
!  =?iso-8859-1?q?Gr=FC=DF?= =?iso-8859-1?q?_Gott!?=""")
          eq(decode_header(h.encode()),
             [('Hello World!', None),