changeset 11:1aaf2ba89b30

introduce failing tests
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 29 Feb 2012 15:22:51 -0800
parents 1a11c096284b
children 8127dde8da22
files tests/doctest.txt tests/example/foo/bar.txt
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/doctest.txt	Wed Feb 29 15:04:03 2012 -0800
+++ b/tests/doctest.txt	Wed Feb 29 15:22:51 2012 -0800
@@ -50,3 +50,11 @@
     >>> response.status
     404
 
+Ensure you can get resources from subdirectories::
+
+    >>> response = testapp.get('/foo')
+    >>> response.status
+
+Ensure you can't get to non-allowed resources::
+
+    >>> response = testapp.get('/../exampleBADBADBAD')
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/example/foo/bar.txt	Wed Feb 29 15:22:51 2012 -0800
@@ -0,0 +1,1 @@
+bar