diff options
| author | Bert JW Regeer <bertjw@regeer.org> | 2016-04-12 19:37:02 -0600 |
|---|---|---|
| committer | Bert JW Regeer <bertjw@regeer.org> | 2016-04-12 20:21:43 -0600 |
| commit | b799e3ced5422fac7ca109e29c4fd32e08157dcf (patch) | |
| tree | 210f1d0f8c48141cff9caf09fefc5464e092003b | |
| parent | d9d194b62706dccb8d8b77cff3e424a1947f0e80 (diff) | |
| download | pyramid-b799e3ced5422fac7ca109e29c4fd32e08157dcf.tar.gz pyramid-b799e3ced5422fac7ca109e29c4fd32e08157dcf.tar.bz2 pyramid-b799e3ced5422fac7ca109e29c4fd32e08157dcf.zip | |
Explicit set Accept header to text/html
The default is now text/plain, so explicitly set the accept header for
what we want to accept.
| -rw-r--r-- | pyramid/tests/test_httpexceptions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyramid/tests/test_httpexceptions.py b/pyramid/tests/test_httpexceptions.py index b94ef30e4..47d138d7b 100644 --- a/pyramid/tests/test_httpexceptions.py +++ b/pyramid/tests/test_httpexceptions.py @@ -230,11 +230,11 @@ class TestHTTPException(unittest.TestCase): body = list(exc(environ, start_response))[0] self.assertFalse(b'<!-- ' in body) - def test__default_app_iter_with_comment_html(self): + def test__default_app_iter_with_comment_ampersand(self): cls = self._getTargetSubclass() exc = cls(comment='comment & comment') environ = _makeEnviron() - environ['HTTP_ACCEPT'] = '*/*' + environ['HTTP_ACCEPT'] = 'text/html' start_response = DummyStartResponse() body = list(exc(environ, start_response))[0] self.assertTrue(b'<!-- comment & comment -->' in body) |
