changeset 15:21673816cfde

add a test for normal files ending with slashes
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 29 Feb 2012 15:46:57 -0800
parents c8520774ddc9
children 4f26df21dc12
files tests/doctest.txt
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/doctest.txt	Wed Feb 29 15:45:27 2012 -0800
+++ b/tests/doctest.txt	Wed Feb 29 15:46:57 2012 -0800
@@ -51,6 +51,12 @@
     >>> response.status
     404
 
+Ensure we're not misusing slashes::
+
+    >>> response = testapp.get('/helloworld.txt/', status=404)
+    >>> response.status
+    404
+
 Ensure you can get resources from subdirectories::
 
     >>> response = testapp.get('/foo')