comparison tests/doctest.txt @ 9:68db1111f23a

serve file contents, pt 2
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 29 Feb 2012 14:51:27 -0800
parents 782e15b86b86
children 1a11c096284b
comparison
equal deleted inserted replaced
8:782e15b86b86 9:68db1111f23a
39 Ensure you can serve file contents:: 39 Ensure you can serve file contents::
40 40
41 >>> response = testapp.get('/helloworld.txt') 41 >>> response = testapp.get('/helloworld.txt')
42 >>> response.status 42 >>> response.status
43 200 43 200
44 >>> response.body == file(filename).read()
45 True