diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-08-31 13:13:46 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-08-31 13:13:46 +0000 |
| commit | 2d4f61826a0ebc5330b869713abf7a36a69c0e6a (patch) | |
| tree | 15ab99d60d0fadc5a8824db16934dd744ab6053e /repoze/bfg/tests | |
| parent | 211c300c104313796b1d298e3d95db2d5adaf848 (diff) | |
| download | pyramid-2d4f61826a0ebc5330b869713abf7a36a69c0e6a.tar.gz pyramid-2d4f61826a0ebc5330b869713abf7a36a69c0e6a.tar.bz2 pyramid-2d4f61826a0ebc5330b869713abf7a36a69c0e6a.zip | |
- The reify decorator now maintains the docstring of the function it
wraps.
Diffstat (limited to 'repoze/bfg/tests')
| -rw-r--r-- | repoze/bfg/tests/test_decorator.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/repoze/bfg/tests/test_decorator.py b/repoze/bfg/tests/test_decorator.py index b1ac2252d..d41c62c65 100644 --- a/repoze/bfg/tests/test_decorator.py +++ b/repoze/bfg/tests/test_decorator.py @@ -19,5 +19,11 @@ class TestReify(unittest.TestCase): result = decorator.__get__(None) self.assertEqual(result, decorator) + def test___doc__copied(self): + def wrapped(inst): + """My doc""" + decorator = self._makeOne(wrapped) + self.assertEqual(decorator.__doc__, "My doc") + class Dummy(object): pass |
