

def test_portOption(self):
    '\n        L{nit.NitOptions.parseOptions} accepts the I{--port} option and sets\n        the port number based on it.\n        '
    options = nit.NitOptions()
    options.parseOptions(['--port', '1234'])
    self.assertEqual(options['port'], 1234)

dataset/ETHPy150Open twisted/nevow/nevow/test/test_nit.py NevowInteractiveTesterTest.test_portOption/original