예제 #1
0
def test_dict_instantiation_graph_obj_error_2():
    assert Annotations([Annotations()]) == [[]]
예제 #2
0
def test_dict_instantiation_key_error_2():
    assert Annotations([{"font": "not-a-dict"}]) == [{"font": "not-a-dict"}]
예제 #3
0
def test_dict_instantiation_key_error():
    assert Annotations([{
        "not-a-key": "anything"
    }]) == [{
        "not-a-key": "anything"
    }]
예제 #4
0
def test_dict_instantiation():
    Annotations([{"text": "annotation text"}])
예제 #5
0
def test_weird_instantiation():  # Python allows this, but nonsensical for us.
    assert Annotations({}) == list()
예제 #6
0
def test_trivial():
    assert Annotations() == list()