Ejemplo n.º 1
0
def test_id_num():
    for i in range(0, 121, 20):
        if i == 0:
            assert Decitala("Aditala").id_num == str(i + 1)
        else:
            assert Decitala.get_by_id(i).id_num == str(i)
Ejemplo n.º 2
0
def test_get_by_id():
    random_nums = [str(x) for x in [71, 23, 14, 91, 108, 44]]
    for this_id in random_nums:
        assert Decitala.get_by_id(this_id) is not None