@responses.activate
def test_download_already_exists_valid(tempdir, mock_url):
    with captured_logging() as buf:
        path = op.join(tempdir, 'test')
        # Create valid file.
        with open(path, 'ab') as f:
            f.write(_DATA.tostring())
        _check(_dl(path))
    assert 'skip' in buf.getvalue()
dataset/ETHPy150Open kwikteam/phy/phy/io/tests/test_datasets.py/test_download_already_exists_valid/original