diff options
| author | Bert JW Regeer <bertjw@regeer.org> | 2016-04-14 01:07:41 -0600 |
|---|---|---|
| committer | Bert JW Regeer <bertjw@regeer.org> | 2016-04-14 01:07:41 -0600 |
| commit | d5e3a7cc63135c26563d9fad93e67856ade726d4 (patch) | |
| tree | 01fee8b7a2f3fdb5cfc0c4296f9bede5a785245a | |
| parent | 80f9822d85ba7e7efedff90648a336594171a3d6 (diff) | |
| download | pyramid-d5e3a7cc63135c26563d9fad93e67856ade726d4.tar.gz pyramid-d5e3a7cc63135c26563d9fad93e67856ade726d4.tar.bz2 pyramid-d5e3a7cc63135c26563d9fad93e67856ade726d4.zip | |
Update test to verify the default is text/html
| -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 69c7579ce..6c6e16d55 100644 --- a/pyramid/tests/test_httpexceptions.py +++ b/pyramid/tests/test_httpexceptions.py @@ -249,7 +249,7 @@ class TestHTTPException(unittest.TestCase): if header[0] == 'Content-Type': self.assertEqual(header[1], 'text/plain; charset=UTF-8') - def test__content_type_default_is_plain(self): + def test__content_type_default_is_html(self): cls = self._getTargetSubclass() exc = cls() environ = _makeEnviron() @@ -258,7 +258,7 @@ class TestHTTPException(unittest.TestCase): exc(environ, start_response) for header in start_response.headerlist: if header[0] == 'Content-Type': - self.assertEqual(header[1], 'text/plain; charset=UTF-8') + self.assertEqual(header[1], 'text/html; charset=UTF-8') def test__content_type_text_html(self): cls = self._getTargetSubclass() |
