def assert_length(sequence, expected, message=None):
    """Assert a sequence or iterable has an expected length."""
    message = message or "%(sequence)s has length %(length)s expected %(expected)s"
    length = len(list(sequence))
    assert length == expected, locals() % message
dataset/ETHPy150Open Yelp/Testify/testify/assertions.py/assert_length/swapped operands of `%`