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 = {u'test123': {u'sents': {u'0': {u'content': text, u'parsed': parse}},
                u'meta': {u'date': u'20150101'}}}

    return_dict = petrarch.do_coding(dict,None)
    assert return_dict['test123']['sents']['0']['events'] == [['USAMIL','IRQ','192']]


#########################################
#
#       Individual function tests
#
#########################################
dataset/ETHPy150Open openeventdata/petrarch/petrarch/tests/test_petrarch.py/test_actor_order/original