def assert_equal_sequence(expected, actual):
    assert len(expected) == len(actual), "length should be %i, not %i:\n%s" % (
        len(expected), len(actual), actual
    )
    for i in range(len(expected)):
        try:
            assert_equal(expected[i], actual[i])
        except __HOLE__, assertion_error:
            raise AssertionError(
                str(assertion_error)
            )
dataset/ETHPy150Open sahana/eden/modules/test_utils/assert_equal.py/assert_equal_sequence