

@make_request_and_skipIf((sys.flags.optimize >= 2), 'Docstrings are omitted with -O2 and above')
def test_autolinking(self):
    'Test that the server correctly automatically wraps references to\n        PEPS and RFCs with links, and that it linkifies text starting with\n        http or ftp protocol prefixes.\n\n        The documentation for the "add" method contains the test material.\n        '
    self.client.request('GET', '/')
    response = self.client.getresponse()
    self.assertIn('<dl><dt><a name="-add"><strong>add</strong></a>(x, y)</dt><dd><tt>Add&nbsp;two&nbsp;instances&nbsp;together.&nbsp;This&nbsp;follows&nbsp;<a href="http://www.python.org/dev/peps/pep-0008/">PEP008</a>,&nbsp;but&nbsp;has&nbsp;nothing<br>\nto&nbsp;do&nbsp;with&nbsp;<a href="http://www.rfc-editor.org/rfc/rfc1952.txt">RFC1952</a>.&nbsp;Case&nbsp;should&nbsp;matter:&nbsp;pEp008&nbsp;and&nbsp;rFC1952.&nbsp;&nbsp;Things<br>\nthat&nbsp;start&nbsp;with&nbsp;http&nbsp;and&nbsp;ftp&nbsp;should&nbsp;be&nbsp;auto-linked,&nbsp;too:<br>\n<a href="http://google.com">http://google.com</a>.</tt></dd></dl>', response.read())

dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_docxmlrpc.py DocXMLRPCHTTPGETServer.test_autolinking/original