# HG changeset patch # User Jeff Hammel # Date 1330557771 28800 # Node ID 1aaf2ba89b30a67630f5087859a219dbecb99416 # Parent 1a11c096284b90554778c5b5d5aaf90b5b46ca09 introduce failing tests diff -r 1a11c096284b -r 1aaf2ba89b30 tests/doctest.txt --- 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') diff -r 1a11c096284b -r 1aaf2ba89b30 tests/example/foo/bar.txt --- /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