Esempio n. 1
0
def test_last(release_int, instrument):
    assert type(RELEASE(release_int, instrument).last) is IMG
Esempio n. 2
0
def test_start(release_int, instrument):
    assert type(RELEASE(release_int, instrument).start) is datetime.datetime
Esempio n. 3
0
def test_end(release_int, instrument):
    assert type(RELEASE(release_int, instrument).end) is datetime.datetime
Esempio n. 4
0
def test_nb_imgs(release_int, instrument):
    nb_imgs = RELEASE(release_int, instrument).nb_imgs
    assert type(nb_imgs) is int
    assert nb_imgs > 0
Esempio n. 5
0
def test_nb_folders(release_int, instrument):
    nb_folders = RELEASE(release_int, instrument).nb_folders
    assert type(nb_folders) is int
    assert nb_folders > 0
Esempio n. 6
0
def test_url(release_int, instrument, release_url):
    assert RELEASE(release_int, instrument).url == release_url
Esempio n. 7
0
def test_md5(release_int, instrument, release_md5):
    assert RELEASE(release_int, instrument).md5 == release_md5
Esempio n. 8
0
def test_release(release_int, release_str, instrument):
    assert str(RELEASE(release_int, instrument)) == release_str
    assert int(RELEASE(release_str, instrument)) == release_int