From a66ce9e5330abbe5de85b4de49f905293804be0a Mon Sep 17 00:00:00 2001 From: Bert JW Regeer Date: Tue, 12 Apr 2016 20:14:01 -0600 Subject: Add new tests to verify we get what we ask for This simply makes sure we get back the appropriate Content-Type based upon our Accept header. --- pyramid/tests/test_httpexceptions.py | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/pyramid/tests/test_httpexceptions.py b/pyramid/tests/test_httpexceptions.py index a4b936a38..223f8ab35 100644 --- a/pyramid/tests/test_httpexceptions.py +++ b/pyramid/tests/test_httpexceptions.py @@ -239,6 +239,49 @@ class TestHTTPException(unittest.TestCase): self.assertEqual(header[1], 'text/plain; charset=UTF-8') self.assertFalse(b'