summaryrefslogtreecommitdiff
path: root/tests/test_response.py
diff options
context:
space:
mode:
authorMichael Merickel <github@m.merickel.org>2019-01-10 19:58:31 -0600
committerGitHub <noreply@github.com>2019-01-10 19:58:31 -0600
commit00a46e5529d39f5358119ce43d1d9dfa09b3b761 (patch)
treed556ed910aba7d793e70db9a4a5101855349d0d6 /tests/test_response.py
parent4f626f7ebfd8703ed854973a5db6273c01064955 (diff)
parentafb06fd95cd225fc2aae06b710e3968a89d64353 (diff)
downloadpyramid-00a46e5529d39f5358119ce43d1d9dfa09b3b761.tar.gz
pyramid-00a46e5529d39f5358119ce43d1d9dfa09b3b761.tar.bz2
pyramid-00a46e5529d39f5358119ce43d1d9dfa09b3b761.zip
Merge pull request #3448 from mmerickel/drop-mimetypes-shim
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()