[Python-checkins] CVS: python/dist/src/Lib/test test_urllib.py,1.5,1.6

Tim Peters tim_one@users.sourceforge.net
Thu, 18 Jan 2001 23:00:10 -0800


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

Modified Files:
	test_urllib.py 
Log Message:
urllib.py very recently changed to produce uppercase escapes, but no
corresponding changes were made to its std test.


Index: test_urllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_urllib.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** test_urllib.py	2001/01/19 06:06:37	1.5
--- test_urllib.py	2001/01/19 07:00:08	1.6
***************
*** 10,14 ****
          '\320\321\322\323\324\325\326\330\331\332\333\334\335\336'
  
! expected = 'abcdefghijklmnopqrstuvwxyz%df%e0%e1%e2%e3%e4%e5%e6%e7%e8%e9%ea%eb%ec%ed%ee%ef%f0%f1%f2%f3%f4%f5%f6%f8%f9%fa%fb%fc%fd%fe%ffABCDEFGHIJKLMNOPQRSTUVWXYZ%c0%c1%c2%c3%c4%c5%c6%c7%c8%c9%ca%cb%cc%cd%ce%cf%d0%d1%d2%d3%d4%d5%d6%d8%d9%da%db%dc%dd%de'
  
  test = urllib.quote(chars)
--- 10,19 ----
          '\320\321\322\323\324\325\326\330\331\332\333\334\335\336'
  
! expected = 'abcdefghijklmnopqrstuvwxyz' \
!            '%DF%E0%E1%E2%E3%E4%E5%E6%E7%E8%E9%EA%EB%EC%ED%EE' \
!            '%EF%F0%F1%F2%F3%F4%F5%F6%F8%F9%FA%FB%FC%FD%FE%FF' \
!            'ABCDEFGHIJKLMNOPQRSTUVWXYZ' \
!            '%C0%C1%C2%C3%C4%C5%C6%C7%C8%C9%CA%CB%CC%CD%CE%CF' \
!            '%D0%D1%D2%D3%D4%D5%D6%D8%D9%DA%DB%DC%DD%DE'
  
  test = urllib.quote(chars)
***************
*** 19,23 ****
  in1 = "abc/def"
  out1_1 = "abc/def"
! out1_2 = "abc%2fdef"
  
  verify(urllib.quote(in1) == out1_1, "urllib.quote problem 2")
--- 24,28 ----
  in1 = "abc/def"
  out1_1 = "abc/def"
! out1_2 = "abc%2Fdef"
  
  verify(urllib.quote(in1) == out1_1, "urllib.quote problem 2")
***************
*** 25,29 ****
  
  in2 = "abc?def"
! out2_1 = "abc%3fdef"
  out2_2 = "abc?def"
  
--- 30,34 ----
  
  in2 = "abc?def"
! out2_1 = "abc%3Fdef"
  out2_2 = "abc?def"