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)
def test_entity_parser_from_dict(): mock_entity = make_mock_entity() BaseEntity.from_dict(mock_entity)