def expect_all ( a , b ) : assert all ( _a == _b for _a , _b in zip_longest ( a , b ) )
python assert two lists have same size
\ Asserts that two iterables contain the same values .
def expect_all(a, b):
    """\
    Asserts that two iterables contain the same values.
    """
    assert all(_a == _b for _a, _b in zip_longest(a, b))