

def test_port(self):
    with self.mock_option('port', 5555):
        command = FlowerCommand()
        command.apply_options('flower', argv=['--port=123'])
        self.assertEqual(123, options.port)

dataset/ETHPy150Open mher/flower/tests/test_command.py TestFlowerCommand.test_port/original