

def test_actor_order():
    text = 'US troops from Syria have just invaded Northern Iraq'
    parse = '(ROOT (S (NP (NP (NNP US) (NNS troops)) (PP (IN from) (NP (NNP Syria)))) (VP (VBP have) (ADVP (RB just)) (VP (VBN invaded) (NP (JJ Northern) (NNP Iraq))))))'
    parsed = utilities._format_parsed_str(parse)
    dict = {
        'test123': {
            'sents': {
                '0': {
                    'content': text,
                    'parsed': parse,
                },
            },
            'meta': {
                'date': '20150101',
            },
        },
    }
    return_dict = petrarch.do_coding(parsed, None)
    assert (return_dict['test123']['sents']['0']['events'] == [['USAMIL', 'IRQ', '192']])

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