@pytest.mark.essential
def test_actors(actor="", show=False, path=None):
    t = ActorTester()
    if path:
        t.load_actor(path)
    else:
        t.collect_actors(actor)
        t.instantiate_actors()
    results = t.test_actors()

    if not any(results.values()):
        if actor:
            print "No actors matching '%s' found" % (actor,)
        else:
            raise Exception("No actors found")

    if show:
        return results

    if results['fail'] or results['errors']:
        show_issues(results)

    if results['errors']:
        raise Exception("%d actor(s) had errors" % (len(results['errors']), ))
    if results['fail']:
        raise Exception("%d actor(s) failed tests" % (len(results['fail']),))
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/actorstore/tests/test_actors.py/test_actors/original