diff options
Diffstat (limited to 'tests/utils_tests/test_functional.py')
| -rw-r--r-- | tests/utils_tests/test_functional.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/utils_tests/test_functional.py b/tests/utils_tests/test_functional.py index e9010b3135..b806be0b16 100644 --- a/tests/utils_tests/test_functional.py +++ b/tests/utils_tests/test_functional.py @@ -50,6 +50,7 @@ class FunctionalTestCase(unittest.TestCase): @cached_property def value(self): + """Here is the docstring...""" return 1, object() def other_value(self): @@ -57,6 +58,9 @@ class FunctionalTestCase(unittest.TestCase): other = cached_property(other_value, name='other') + # docstring should be preserved + self.assertEqual(A.value.__doc__, "Here is the docstring...") + a = A() # check that it is cached |
