def test_getDeprecationDocstring(self):
        """
        L{_getDeprecationDocstring} returns a note about the deprecation to go
        into a docstring.
        """
        version = Version('Twisted', 8, 0, 0)
        self.assertEqual(
            "Deprecated in Twisted 8.0.0.",
            _getDeprecationDocstring(version, ''))

        L{_getDeprecationDocstring} returns a note about the deprecation to go
        into a docstring.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_deprecate.py