changeset 18:76c939271534

introduce a test that i dont know what it means
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 29 Feb 2012 16:05:08 -0800
parents 27bd18f0a359
children c6e459be8534
files tests/doctest.txt
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/doctest.txt	Wed Feb 29 16:01:38 2012 -0800
+++ b/tests/doctest.txt	Wed Feb 29 16:05:08 2012 -0800
@@ -83,4 +83,10 @@
     >>> response = testapp.get('/../exampleBADBADBAD', status=404)
     >>> response.status # Not Found: we do not want to give away these resources
     404
-    
+    >>> response = testapp.get('//') # XXX weird
+    >>> response.status
+    301
+    >>> location = response.header_dict['location']
+    >>> shema, netloc, path, query, fragment = urlparse.urlsplit(location)
+    >>> path
+    '/'