def test_twoPorts(self):
        """
        If the I{--http} option is given twice, there are two listeners
        """
        options = Options()
        options.parseOptions(['--listen', 'tcp:8001', '--listen', 'tcp:8002'])
        self.assertIn('8001', options['ports'][0])
        self.assertIn('8002', options['ports'][1])

        If the I{--http} option is given twice, there are two listeners
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_tap.py