コード例 #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()