diff options
| author | Michael Merickel <michael@merickel.org> | 2012-08-23 10:52:31 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2012-08-23 10:52:31 -0500 |
| commit | 9822a18731616e53bd77045ad8a7879d1a969c23 (patch) | |
| tree | bc202a6514d8d51111b5ae58ab00a5d619820257 | |
| parent | 04373f1691c2e17a28a62b9ed30fcc830a007ffd (diff) | |
| download | pyramid-9822a18731616e53bd77045ad8a7879d1a969c23.tar.gz pyramid-9822a18731616e53bd77045ad8a7879d1a969c23.tar.bz2 pyramid-9822a18731616e53bd77045ad8a7879d1a969c23.zip | |
fixed an incompatibility with accept header test in py3
| -rw-r--r-- | pyramid/tests/test_config/test_views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyramid/tests/test_config/test_views.py b/pyramid/tests/test_config/test_views.py index 1a59b3c5c..72a0d8ebd 100644 --- a/pyramid/tests/test_config/test_views.py +++ b/pyramid/tests/test_config/test_views.py @@ -658,7 +658,7 @@ class TestViewsConfigurationMixin(unittest.TestCase): wrapper = self._getViewCallable(config) self.assertTrue(IMultiView.providedBy(wrapper)) self.assertEqual(len(wrapper.media_views.items()),1) - self.assertFalse(wrapper.media_views.has_key('text/HTML')) + self.assertFalse('text/HTML' in wrapper.media_views) self.assertEqual(wrapper(None, None), 'OK') request = DummyRequest() request.accept = DummyAccept('text/html', 'text/html') |
