summaryrefslogtreecommitdiff
path: root/tests/test_response.py
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2019-01-05 13:31:25 -0600
committerMichael Merickel <michael@merickel.org>2019-01-05 13:31:51 -0600
commitafb06fd95cd225fc2aae06b710e3968a89d64353 (patch)
tree29ca08275661c14932955d380ff0648752fc5f2e /tests/test_response.py
parentc02f228b554d636d475ad1f34945fd91e4b1bfdf (diff)
downloadpyramid-afb06fd95cd225fc2aae06b710e3968a89d64353.tar.gz
pyramid-afb06fd95cd225fc2aae06b710e3968a89d64353.tar.bz2
pyramid-afb06fd95cd225fc2aae06b710e3968a89d64353.zip
drop mimetypes bugfix for 2.6.x that is no longer needed
Diffstat (limited to 'tests/test_response.py')
-rw-r--r--tests/test_response.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/test_response.py b/tests/test_response.py
index 18d4335ad..b63ccc6b1 100644
--- a/tests/test_response.py
+++ b/tests/test_response.py
@@ -120,31 +120,6 @@ class TestFileIter(unittest.TestCase):
self.assertTrue(f.closed)
-class Test_patch_mimetypes(unittest.TestCase):
- def _callFUT(self, module):
- from pyramid.response import init_mimetypes
-
- return init_mimetypes(module)
-
- def test_has_init(self):
- class DummyMimetypes(object):
- def init(self):
- self.initted = True
-
- module = DummyMimetypes()
- result = self._callFUT(module)
- self.assertEqual(result, True)
- self.assertEqual(module.initted, True)
-
- def test_missing_init(self):
- class DummyMimetypes(object):
- pass
-
- module = DummyMimetypes()
- result = self._callFUT(module)
- self.assertEqual(result, False)
-
-
class TestResponseAdapter(unittest.TestCase):
def setUp(self):
registry = Dummy()