Mercurial > hg > FileServer
comparison tests/doctest.txt @ 11:1aaf2ba89b30
introduce failing tests
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 29 Feb 2012 15:22:51 -0800 |
parents | 1a11c096284b |
children | 8127dde8da22 |
comparison
equal
deleted
inserted
replaced
10:1a11c096284b | 11:1aaf2ba89b30 |
---|---|
48 | 48 |
49 >>> response = testapp.get('/notfound.bin', status=404) | 49 >>> response = testapp.get('/notfound.bin', status=404) |
50 >>> response.status | 50 >>> response.status |
51 404 | 51 404 |
52 | 52 |
53 Ensure you can get resources from subdirectories:: | |
54 | |
55 >>> response = testapp.get('/foo') | |
56 >>> response.status | |
57 | |
58 Ensure you can't get to non-allowed resources:: | |
59 | |
60 >>> response = testapp.get('/../exampleBADBADBAD') |