From 9eb97f7dfa70e3e6dd96e40231bba3495f008c27 Mon Sep 17 00:00:00 2001 From: ianb Date: Thu, 3 Aug 2006 15:20:54 +0000 Subject: doc format fix; better error message from Jamie Wilkinson --- docs/news.txt | 9 +++++---- 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] -- cgit v1.2.1