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