def test_custom_agent_port(self):
        options = ControlOptions()
        options.parseOptions([b"--agent-port", b"tcp:1234"])
        self.assertEqual(options["agent-port"], b"tcp:1234")
The ``--port`` command-line option allows configuring the REST API
dataset/ETHPy150Open ClusterHQ/flocker/flocker/control/test/test_script.py/ControlOptionsTests.test_custom_agent_port