

def test_complex1():
    text = 'A Tunisian court has jailed a Nigerian student for two years for helping young militants join an armed Islamic group in Lebanon, his lawyer said Wednesday.'
    parse = '( (S (S\n    (NP (DT A) (NNP Tunisian) (NN court))\n    (VP (AUXZ has)\n    (VP (VBN jailed)\n    (NP (DT a) (JJ Nigerian) (NN student))\n    (PP (IN for)\n    (NP (CD two) (NNS years)))\n    (PP (IN for) (S\n    (VP (VBG helping) (S\n    (NP (JJ young) (NNS militants))\n    (VP (VB join)\n    (NP (NP (DT an) (JJ armed) (JJ Islamic) (NN group))\n    (PP (IN in)\n    (NP (NNP Lebanon)))))))))))) (, ,)\n    (NP (PRP$ his) (NN lawyer))\n    (VP (VBD said)\n    (NP (NNP Wednesday))) (. .)))'
    parsed = utilities._format_parsed_str(parse)
    dict = {
        'test123': {
            'sents': {
                '0': {
                    'content': text,
                    'parsed': parse,
                },
            },
            'meta': {
                'date': '20010101',
            },
        },
    }
    return_dict = petrarch.do_coding(parsed, None)
    assert (return_dict['test123']['sents']['0']['events'] == [['TUNJUD', 'NGAEDU', '173']])

dataset/ETHPy150Open openeventdata/petrarch/petrarch/tests/test_petrarch.py test_complex1/VarMisuse@81/462 `dict`->`parsed`