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