Ejemplo n.º 1
0
def test_entity_parser_from_dict():
    mock_entity = make_mock_entity()
    mock_entity["range"] = {"start": mock_entity["start"], "end": mock_entity["end"]}
    mock_entity["type"] = "basic"
    del mock_entity["start"]
    del mock_entity["end"]
    mock_entity["values"] = mock_entity["value"]["values"]
    del mock_entity["value"]
    BaseEntity.from_dict(mock_entity)
Ejemplo n.º 2
0
def test_entity_parser_from_dict():
    mock_entity = make_mock_entity()
    BaseEntity.from_dict(mock_entity)