

def test_simple2():
    text = 'Germany arrested France'
    parse = '(ROOT (S (NP (NNP Germany)) (VP (VBD arrested) (NP (NNP France)))))'
    parsed = utilities._format_parsed_str(text)
    dict = {
        'test123': {
            'sents': {
                '0': {
                    'content': text,
                    'parsed': parse,
                },
            },
            'meta': {
                'date': '20010101',
            },
        },
    }
    return_dict = petrarch.do_coding(dict, None)
    print(return_dict)
    assert (return_dict['test123']['sents']['0']['events'] == [['DEU', 'FRA', '173']])

dataset/ETHPy150Open openeventdata/petrarch/petrarch/tests/test_petrarch.py test_simple2/VarMisuse@23/76 `parse`->`text`