changeset 10:1a11c096284b

som more tests
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 29 Feb 2012 15:04:03 -0800
parents 68db1111f23a
children 1aaf2ba89b30
files tests/doctest.txt
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/doctest.txt	Wed Feb 29 14:51:27 2012 -0800
+++ b/tests/doctest.txt	Wed Feb 29 15:04:03 2012 -0800
@@ -43,3 +43,10 @@
     200
     >>> response.body == file(filename).read()
     True
+
+Ensure you get a 404 for nonexistent resources::
+
+    >>> response = testapp.get('/notfound.bin', status=404)
+    >>> response.status
+    404
+