def test_mock_noop_keep_mock():
    """This would've been rewritten if keep_mock were False"""
    s = (
        'from mock import patch\n'
        '\n'
        'patch("func")'
    )
    settings = Settings(keep_mock=True)
    assert _fix_plugins(s, settings=settings) == s
This would've been rewritten if keep_mock were False
tests/features/import_replaces_test.py