mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-27 22:51:41 +08:00
22 lines
540 B
Python
22 lines
540 B
Python
from catalyst.testing import ZiplineTestCase
|
|
from catalyst.utils.sharedoc import copydoc
|
|
|
|
|
|
class TestSharedoc(ZiplineTestCase):
|
|
|
|
def test_copydoc(self):
|
|
def original_docstring_function():
|
|
"""
|
|
My docstring brings the boys to the yard.
|
|
"""
|
|
pass
|
|
|
|
@copydoc(original_docstring_function)
|
|
def copied_docstring_function():
|
|
pass
|
|
|
|
self.assertEqual(
|
|
original_docstring_function.__doc__,
|
|
copied_docstring_function.__doc__
|
|
)
|