Ejemplo n.º 1
0
def test_last(release_int, instrument):
    assert type(RELEASE(release_int, instrument).last) is IMG
Ejemplo n.º 2
0
def test_start(release_int, instrument):
    assert type(RELEASE(release_int, instrument).start) is datetime.datetime
Ejemplo n.º 3
0
def test_end(release_int, instrument):
    assert type(RELEASE(release_int, instrument).end) is datetime.datetime
Ejemplo 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
Ejemplo 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
Ejemplo n.º 6
0
def test_url(release_int, instrument, release_url):
    assert RELEASE(release_int, instrument).url == release_url
Ejemplo n.º 7
0
def test_md5(release_int, instrument, release_md5):
    assert RELEASE(release_int, instrument).md5 == release_md5
Ejemplo 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