diff options
| author | Casey Duncan <casey.duncan@gmail.com> | 2015-04-15 16:15:36 -0400 |
|---|---|---|
| committer | Casey Duncan <casey.duncan@gmail.com> | 2015-04-15 16:15:36 -0400 |
| commit | 96c87b36a39aa492d4ecaab0805d997270bec33b (patch) | |
| tree | 1c20717c1e0d57e333e090c013bf4b221cd5e89a | |
| parent | 1224af27c66e5351e2fa779e5085a57b8d3489b1 (diff) | |
| download | pyramid-96c87b36a39aa492d4ecaab0805d997270bec33b.tar.gz pyramid-96c87b36a39aa492d4ecaab0805d997270bec33b.tar.bz2 pyramid-96c87b36a39aa492d4ecaab0805d997270bec33b.zip | |
Finish porting original view deriver tests
| -rw-r--r-- | pyramid/tests/test_config/test_derivations.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyramid/tests/test_config/test_derivations.py b/pyramid/tests/test_config/test_derivations.py index 319f03414..97fc4c58a 100644 --- a/pyramid/tests/test_config/test_derivations.py +++ b/pyramid/tests/test_config/test_derivations.py @@ -136,7 +136,7 @@ class TestDeriveView(unittest.TestCase): pass def theviewmethod(self): return None - result = self.config.derive_view(AView) + result = self.config.derive_view(AView, attr='theviewmethod') self.assertFalse(result is AView) try: result(None, request) @@ -173,7 +173,7 @@ class TestDeriveView(unittest.TestCase): return self def view(request): return 'OK' - result = self.config.derive_view(view) + result = self.config.derive_view(view, renderer=moo()) self.assertFalse(result.__wraps__ is view) request = self._makeRequest() context = testing.DummyResource() @@ -1081,7 +1081,7 @@ class TestDeriveView(unittest.TestCase): def test_http_cached_view_bad_tuple(self): def view(request): pass - self.assertRaises(ConfigurationError, self.config.derive_view, + self.assertRaises(ConfigurationError, self.config._derive_view, view, http_cache=(None,)) from zope.interface import implementer |
