def test_appendToEmptyDocstring(self):
        """
        Appending to an empty docstring simply replaces the docstring.
        """

        def noDocstring():
            pass

        _appendToDocstring(noDocstring, "Appended text.")
        self.assertEqual("Appended text.", noDocstring.__doc__)

        Appending to an empty docstring simply replaces the docstring.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_deprecate.py