diff options
| author | Theron Luhn <theron@luhn.com> | 2019-04-04 20:16:21 -0700 |
|---|---|---|
| committer | Theron Luhn <theron@luhn.com> | 2019-04-04 20:16:21 -0700 |
| commit | bd51b6c3afb8bd46d37bbf77e208f2e91401b1db (patch) | |
| tree | 6535f127150a373198e9805790e3a03e339e0818 /tests | |
| parent | b1c366a5921969254d87ffc2417d39046cffebe3 (diff) | |
| download | pyramid-bd51b6c3afb8bd46d37bbf77e208f2e91401b1db.tar.gz pyramid-bd51b6c3afb8bd46d37bbf77e208f2e91401b1db.tar.bz2 pyramid-bd51b6c3afb8bd46d37bbf77e208f2e91401b1db.zip | |
Use depth argument for view_config info.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_view.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_view.py b/tests/test_view.py index e182c28ad..5411e57c0 100644 --- a/tests/test_view.py +++ b/tests/test_view.py @@ -516,6 +516,17 @@ class TestViewConfigDecorator(unittest.TestCase): self.assertEqual(info[2], 'test_create_info') self.assertEqual(info[3], 'decorator = target()') + def test_create_info_depth(self): + target = self._getTargetClass() + + def make(): + return target(_depth=1) + + decorator = make() + info = decorator._info + self.assertEqual(info[2], 'test_create_info_depth') + self.assertEqual(info[3], 'decorator = make()') + def test_create_context_trumps_for(self): decorator = self._makeOne(context='123', for_='456') self.assertEqual(decorator.context, '123') |
