@click.command()
@click.option('--expected-port', type=int, required=True)
@click_config.wrap(module=Config, sections=('logger', 'mysql'), watch=True)
def passer(watcher, expected_port):
    with restoring_config('a.yaml'):
        watcher.io_loop.call_later(0.01, alter_yaml, 'a.yaml',
                                   {'mysql': {'port': Config.mysql.port + 1, 'host': 'remotehost'}})
        try:
            watcher.io_loop.run_sync(lambda: wait_for_change(('mysql', 'port'), watcher), timeout=0.1)
        except TimeoutError:
            pass
        else:
            assert False, "TimeoutError should have been raised"

        watcher.stop()
    assert Config.mysql.port == expected_port
Sets the DiffChunkGenerator class used for generating chunks.
dataset/ETHPy150Open EverythingMe/click-config/click_config/test/test_inotify.py/passer--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/diffviewer/chunk_generator.py/set_diff_chunk_generator_class