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