def fixed(self, offset, *array): assert_that(self.array[offset:offset + len(array)] == bytes(array))
def __init__(self, array, expected_length): print("comparing", len(array), "to", expected_length, "=>", len(array).__eq__(expected_length)) assert_that(len(array) == expected_length) self.array = array