def test_ensure_datafile_uses_existing(tmpdir):
    file = tmpdir.join('test.txt')
    file.write('content')
    ensure_datafile(file.strpath, 'https://httpbin.org/get?testParam=1')
    assert (file.read() == 'content')
def test_ensure_datafile_uses_existing(tmpdir):
    file = tmpdir.join('test.txt')
    file.write('content')
    ensure_datafile(file.strpath, 'https://httpbin.org/get?testParam=1')
    assert (file.read() == 'content')