def test_copy_config_interrupt():
    """Pressing ``Ctrl-C`` should cancel the copy"""

    with NamedTemporaryFile(suffix='.cfg') as fp:
        with mock.patch('rtv.config.six.moves.input') as func:
            func.side_effect = KeyboardInterrupt
            copy_default_config(fp.name)
            assert not fp.read()
Pressing ``Ctrl-C`` should cancel the copy
tests/test_config.py