Lines Matching refs:assertBuilderEquals
304 def assertBuilderEquals(self, builder, want_chars_or_ints): member in TestByteLayout
317 self.assertBuilderEquals(b, [])
319 self.assertBuilderEquals(b, [1])
321 self.assertBuilderEquals(b, [129, 1])
323 self.assertBuilderEquals(b, [255, 129, 1])
325 self.assertBuilderEquals(b, [0x22, 0x82, 0, 255, 129, 1]) # first pad
328 self.assertBuilderEquals(b, [0xEE, 0xFE, 0x22, 0x82, 0, 255, 129, 1])
330 self.assertBuilderEquals(b, [204, 204, 204, 252, 0xEE, 0xFE,
333 self.assertBuilderEquals(b, [0x32, 0x54, 0x76, 0x98,
341 self.assertBuilderEquals(b, [0x88, 0x77, 0x66, 0x55,
346 self.assertBuilderEquals(b, [0x88, 0x77, 0x66, 0x55,
351 self.assertBuilderEquals(b, [])
353 self.assertBuilderEquals(b, [0, 0, 0]) # align to 4bytes
355 self.assertBuilderEquals(b, [1, 0, 0, 0])
357 self.assertBuilderEquals(b, [1, 0, 0, 0, 1, 0, 0, 0]) # padding
362 self.assertBuilderEquals(b, [0, 0]) # align to 4bytes
364 self.assertBuilderEquals(b, [1, 0, 0])
366 self.assertBuilderEquals(b, [2, 1, 0, 0])
368 self.assertBuilderEquals(b, [2, 0, 0, 0, 2, 1, 0, 0]) # padding
373 self.assertBuilderEquals(b, [0, 0]) # align to 4bytes
375 self.assertBuilderEquals(b, [1, 0, 0, 0])
377 self.assertBuilderEquals(b, [1, 0, 0, 0, 1, 0, 0, 0]) # padding
382 self.assertBuilderEquals(b, []) # align to 4bytes
384 self.assertBuilderEquals(b, [0xCD, 0xAB])
386 self.assertBuilderEquals(b, [0xBA, 0xDC, 0xCD, 0xAB])
388 self.assertBuilderEquals(b, [2, 0, 0, 0, 0xBA, 0xDC, 0xCD, 0xAB])
395 self.assertBuilderEquals(b, [3, 0, 0, 0, 'f', 'o', 'o', 0])
398 self.assertBuilderEquals(b, [4, 0, 0, 0, 'm', 'o', 'o', 'p',
405 self.assertBuilderEquals(b, "\x0e\x00\x00\x00\xd0\xa6\xd0\xbb\xd1\x97" \
409 self.assertBuilderEquals(b, "\x18\x00\x00\x00\xef\xbe\x8c\xef\xbe\x91" \
419 self.assertBuilderEquals(b, [3, 0, 0, 0, 1, 2, 3, 0])
423 self.assertBuilderEquals(b, [4, 0, 0, 0, 4, 5, 6, 7, 0, 0, 0, 0,
429 self.assertBuilderEquals(b, [])
431 self.assertBuilderEquals(b, [4, 0, 4, 0, 4, 0, 0, 0])
435 self.assertBuilderEquals(b, [])
437 self.assertBuilderEquals(b, [])
440 self.assertBuilderEquals(b, [
451 self.assertBuilderEquals(b, [])
453 self.assertBuilderEquals(b, [])
456 self.assertBuilderEquals(b, [
468 self.assertBuilderEquals(b, [
483 self.assertBuilderEquals(b, [
499 self.assertBuilderEquals(b, [
517 self.assertBuilderEquals(b, [
534 self.assertBuilderEquals(b, [
556 self.assertBuilderEquals(b, [
582 self.assertBuilderEquals(b, [
605 self.assertBuilderEquals(b, [
627 self.assertBuilderEquals(b, [
657 self.assertBuilderEquals(b, [
698 self.assertBuilderEquals(b, [
732 self.assertBuilderEquals(b, [
756 self.assertBuilderEquals(b, [