def test_generate(self):
        """
        L{_longDescriptionArgsFromReadme()} outputs a L{long_description} in
        reStructuredText format. Local links are transformed into absolute ones
        that point at the Twisted GitHub repository.
        """
        path = self.mktemp()
        with open(path, 'w') as f:
            f.write('\n'.join([
                'Twisted',
                '=======',
                '',
                'Changes: `NEWS <NEWS.rst>`_.',
                "Read `the docs <https://twistedmatrix.com/documents/>`_.\n",
            ]))

        self.assertEqual({
            'long_description': '''\
Twisted
=======

Changes: `NEWS <https://github.com/twisted/twisted/blob/trunk/NEWS.rst>`_.
Read `the docs <https://twistedmatrix.com/documents/>`_.
''',
            'long_description_content_type': 'text/x-rst',
        }, _longDescriptionArgsFromReadme(path))

        L{_longDescriptionArgsFromReadme()} outputs a L{long_description} in
        reStructuredText format. Local links are transformed into absolute ones
        that point at the Twisted GitHub repository.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_setup.py