comparison tests/doctest.txt @ 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
comparison
equal deleted inserted replaced
14:c8520774ddc9 15:21673816cfde
49 49
50 >>> response = testapp.get('/notfound.bin', status=404) 50 >>> response = testapp.get('/notfound.bin', status=404)
51 >>> response.status 51 >>> response.status
52 404 52 404
53 53
54 Ensure we're not misusing slashes::
55
56 >>> response = testapp.get('/helloworld.txt/', status=404)
57 >>> response.status
58 404
59
54 Ensure you can get resources from subdirectories:: 60 Ensure you can get resources from subdirectories::
55 61
56 >>> response = testapp.get('/foo') 62 >>> response = testapp.get('/foo')
57 >>> response.status # 301 Moved Permanently 63 >>> response.status # 301 Moved Permanently
58 301 64 301