Example #1
0
 def fixed(self, offset, *array):
     assert_that(self.array[offset:offset + len(array)] == bytes(array))
Example #2
0
 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