def test_defaultPort(self):
        """
        If the I{--port} option is not specified, L{Options} defaults the port
        to C{8080}.
        """
        options = Options()
        options.parseOptions([])
        self.assertEqual(
            endpoints._parseServer(options['ports'][0], None)[:2],
            ('TCP', (8080, None)))

        If the I{--port} option is not specified, L{Options} defaults the port
        to C{8080}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_tap.py