@@ -0,0 +1,1170 @@
+# -*- coding: utf-8 -*-%0A%0Aimport pytest%0Afrom scout.utils.requests import fetch_refseq_version, get_request%0A%0Adef test_get_request():%0A    %22%22%22Test functions that accepts an url and returns decoded data from it%22%22%22%0A%0A    # test function with a url that is not valid%0A    url = 'fakeyurl.se'%0A    with pytest.raises(ValueError) as err:%0A        # function should raise error%0A        assert get_request(url)%0A%0A    # test function with url that exists%0A    url = 'http://www.ensembl.org'%0A    decoded_resp = get_request(url)%0A    assert '%3C!DOCTYPE html%3E' in decoded_resp%0A%0A%0Adef test_fetch_refseq_version():%0A    %22%22%22Test eutils service from entrez that retrieves refseq version%22%22%22%0A%0A    # fetch complete refseq version for accession that has version%0A    refseq_acc = 'NM_020533'%0A    refseq_version = fetch_refseq_version(refseq_acc)%0A%0A    version_n = refseq_version.split('.')%5B1%5D%0A    # make sure that contains version number%0A    assert version_n.isdigit()%0A%0A    # fetch complete refseq version for accession without version%0A    refseq_acc = 'NM_000000'%0A    refseq_version = fetch_refseq_version(refseq_acc)%0A%0A    # make sure that contains version number%0A    assert refseq_version == refseq_acc%0A

increase coverage