

def test_address(self):
    with self.mock_option('address', '127.0.0.1'):
        command = FlowerCommand()
        command.apply_options('flower', argv=['--address=foo'])
        self.assertEqual('foo', options.address)

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