diff options
author | ianb <devnull@localhost> | 2006-08-03 15:20:54 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2006-08-03 15:20:54 +0000 |
commit | 9eb97f7dfa70e3e6dd96e40231bba3495f008c27 (patch) | |
tree | a3c0762ab5c25ce6b050f6f23a609264134548d8 | |
parent | 2a861e5d626e382c5b2eee50dfd49cf1381379b5 (diff) | |
download | paste-9eb97f7dfa70e3e6dd96e40231bba3495f008c27.tar.gz |
doc format fix; better error message from Jamie Wilkinson
-rw-r--r-- | docs/news.txt | 9 | ||||
-rw-r--r-- | paste/fixture.py | 2 |
2 files changed, 7 insertions, 4 deletions
diff --git a/docs/news.txt b/docs/news.txt index 6c47085..8eb5ce3 100644 --- a/docs/news.txt +++ b/docs/news.txt @@ -58,10 +58,11 @@ News before domain-neutral mappings. * Fixed IE 6 potentially receiving the following ``"400 Bad Request"`` - error on file downloads: - 'Please check your system clock. - According to this server, the time provided in the - If-Modified-Since header is in the future.' + error on file downloads:: + + Please check your system clock. + According to this server, the time provided in the + If-Modified-Since header is in the future.' * Added a 'no' keyword argument to ``TestResponse.mustcontain``, so you can assert that a response does contain some strings at the same diff --git a/paste/fixture.py b/paste/fixture.py index 744acf8..c1ae1c6 100644 --- a/paste/fixture.py +++ b/paste/fixture.py @@ -405,6 +405,8 @@ class TestResponse(object): def form__get(self): forms = self.forms + assert len(forms) > 0, ( + "You used response.form, but no forms exist") assert len(forms) == 1, ( "You used response.form, but more than one form exists") return forms[0] |