# HG changeset patch # User Jeff Hammel # Date 1330555444 28800 # Node ID 623358c3ebde299f1e75f35916565b9f160c2dd6 # Parent 78f1ffd064eadd61936da54b0edfd9fac956dbd8 we has a passing test! diff -r 78f1ffd064ea -r 623358c3ebde tests/doctest.txt --- a/tests/doctest.txt Wed Feb 29 14:17:34 2012 -0800 +++ b/tests/doctest.txt Wed Feb 29 14:44:04 2012 -0800 @@ -1,11 +1,21 @@ Test FileServer ================ -The obligatory imports: +The obligatory imports:: >>> import fileserver + >>> import os + >>> from paste.fixture import TestApp -Run some tests. This test will fail, please fix it: +Make a single file server:: - >>> assert True == False - + >>> filename = os.path.join(here, 'example', 'helloworld.txt') + >>> os.path.exists(filename) + True + >>> app = fileserver.FileApp(filename) + >>> testapp = TestApp(app) + >>> response = testapp.get('/') + >>> response.status + 200 + >>> response.body == file(filename).read() + True diff -r 78f1ffd064ea -r 623358c3ebde tests/test.py --- a/tests/test.py Wed Feb 29 14:17:34 2012 -0800 +++ b/tests/test.py Wed Feb 29 14:44:04 2012 -0800 @@ -9,7 +9,6 @@ import sys from optparse import OptionParser - def run_tests(raise_on_error=False, report_first=False): # add results here