[Python-checkins] CVS: python/dist/src/Lib/test/output test_urlparse,1.1,1.2

Fred L. Drake python-dev@python.org
Thu, 04 Jan 2001 21:57:06 -0800


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

Modified Files:
	test_urlparse 
Log Message:

Add test cases based on RFC 1808.  So now we actually have a test suite
the urljoin() function, which exercises the urlparse() and urlunparse()
functions as side effects.

(Moshe, why did we have perfectly empty tests checked in for this?)


Index: test_urlparse
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/output/test_urlparse,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** test_urlparse	2000/08/03 17:28:50	1.1
--- test_urlparse	2001/01/05 05:57:04	1.2
***************
*** 1 ****
--- 1,41 ----
  test_urlparse
+ urlparse.urljoin() tests
+ 
+ g:h           = 'g:h'
+ g             = 'http://a/b/c/g'
+ ./g           = 'http://a/b/c/g'
+ g/            = 'http://a/b/c/g/'
+ /g            = 'http://a/g'
+ //g           = 'http://g'
+ ?y            = 'http://a/b/c/d;p?y'
+ g?y           = 'http://a/b/c/g?y'
+ g?y/./x       = 'http://a/b/c/g?y/./x'
+ #s            = 'http://a/b/c/d;p?q#s'
+ g#s           = 'http://a/b/c/g#s'
+ g#s/./x       = 'http://a/b/c/g#s/./x'
+ g?y#s         = 'http://a/b/c/g?y#s'
+ ;x            = 'http://a/b/c/d;x'
+ g;x           = 'http://a/b/c/g;x'
+ g;x?y#s       = 'http://a/b/c/g;x?y#s'
+ .             = 'http://a/b/c/'
+ ./            = 'http://a/b/c/'
+ ..            = 'http://a/b/'
+ ../           = 'http://a/b/'
+ ../g          = 'http://a/b/g'
+ ../..         = 'http://a/'
+ ../../        = 'http://a/'
+ ../../g       = 'http://a/g'
+               = 'http://a/b/c/d;p?q#f'
+ ../../../g    = 'http://a/../g'
+ ../../../../g = 'http://a/../../g'
+ /./g          = 'http://a/./g'
+ /../g         = 'http://a/../g'
+ g.            = 'http://a/b/c/g.'
+ .g            = 'http://a/b/c/.g'
+ g..           = 'http://a/b/c/g..'
+ ..g           = 'http://a/b/c/..g'
+ ./../g        = 'http://a/b/g'
+ ./g/.         = 'http://a/b/c/g/'
+ g/./h         = 'http://a/b/c/g/h'
+ g/../h        = 'http://a/b/c/h'
+ 0 errors