def METHOD_NAME(tmpdir):
    tmpdir.join('f1').write_binary(b'foo\nbar\n')
    tmpdir.join('f2').write_binary(b'[INFO] hi\n')
    tmpdir.join('f3').write_binary(b"with'quotes\n")
    tmpdir.join('f4').write_binary(b'foo\npattern\nbar\n')
    tmpdir.join('f5').write_binary(b'[INFO] hi\npattern\nbar')
    tmpdir.join('f6').write_binary(b"pattern\nbarwith'foo\n")
    tmpdir.join('f7').write_binary(b"hello'hi\nworld\n")
    tmpdir.join('f8').write_binary(b'foo\nbar\nbaz\n')
    tmpdir.join('f9').write_binary(b'[WARN] hi\n')
    with tmpdir.as_cwd():
        yield