diff tests/doctest.txt @ 8:782e15b86b86

serve file contents
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 29 Feb 2012 14:51:00 -0800
parents 4d1852cfc077
children 68db1111f23a
line wrap: on
line diff
--- a/tests/doctest.txt	Wed Feb 29 14:48:53 2012 -0800
+++ b/tests/doctest.txt	Wed Feb 29 14:51:00 2012 -0800
@@ -27,9 +27,17 @@
     True
     >>> app = fileserver.DirectoryServer(directory)
     >>> testapp = TestApp(app)
+
+Ensure you can serve directory listings::
+
     >>> response = testapp.get('/')
     >>> response.status
     200
     >>> 'helloworld.txt' in response.body
     True
-    
+
+Ensure you can serve file contents::
+
+    >>> response = testapp.get('/helloworld.txt')
+    >>> response.status
+    200