diff options
| author | Chris McDonough <chrism@plope.com> | 2011-03-28 09:36:49 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-03-28 09:36:49 -0400 |
| commit | bb741de5d0796a37a77eadca96e391eddfb2d350 (patch) | |
| tree | 2979c8e960e2a6ca42b2db318cfb04a980e403dd | |
| parent | 6c90903b78455775af7b950ee0bd785755afb1ad (diff) | |
| download | pyramid-bb741de5d0796a37a77eadca96e391eddfb2d350.tar.gz pyramid-bb741de5d0796a37a77eadca96e391eddfb2d350.tar.bz2 pyramid-bb741de5d0796a37a77eadca96e391eddfb2d350.zip | |
branch coverage
| -rw-r--r-- | pyramid/tests/test_config.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pyramid/tests/test_config.py b/pyramid/tests/test_config.py index e64f43674..d4be27bd1 100644 --- a/pyramid/tests/test_config.py +++ b/pyramid/tests/test_config.py @@ -2995,6 +2995,14 @@ class ConfiguratorTests(unittest.TestCase): foo_meth = config.foo self.failUnless(foo_meth.im_func.__docobj__ is foo) + def test___getattr__matches_no_action_wrap(self): + config = self._makeOne() + def foo(config): pass + directives = {'foo':(foo, False)} + config.registry._directives = directives + foo_meth = config.foo + self.failUnless(foo_meth.im_func is foo) + class TestConfigurator_add_directive(unittest.TestCase): def setUp(self): |
