def test_common_action_prefix_equal():
    this = [ActionExecuted('action_listen'), ActionExecuted('greet'), UserUttered('hey'), ActionExecuted('amazing')]
    other = [ActionExecuted('action_listen'), ActionExecuted('greet'), UserUttered('hey'), ActionExecuted('amazing')]
    num_common = visualization._length_of_common_action_prefix(this, other)
    assert (num_common == 3)
def test_common_action_prefix_equal():
    this = [ActionExecuted('action_listen'), ActionExecuted('greet'), UserUttered('hey'), ActionExecuted('amazing')]
    other = [ActionExecuted('action_listen'), ActionExecuted('greet'), UserUttered('hey'), ActionExecuted('amazing')]
    num_common = visualization._length_of_common_action_prefix(this, other)
    assert (num_common == 3)