Lines Matching refs:assertBuilderEquals
349 def assertBuilderEquals(self, builder, want_chars_or_ints): member in TestByteLayout
362 self.assertBuilderEquals(b, [])
364 self.assertBuilderEquals(b, [1])
366 self.assertBuilderEquals(b, [129, 1])
368 self.assertBuilderEquals(b, [255, 129, 1])
370 self.assertBuilderEquals(b, [0x22, 0x82, 0, 255, 129, 1]) # first pad
373 self.assertBuilderEquals(b, [0xEE, 0xFE, 0x22, 0x82, 0, 255, 129, 1])
375 self.assertBuilderEquals(b, [204, 204, 204, 252, 0xEE, 0xFE,
378 self.assertBuilderEquals(b, [0x32, 0x54, 0x76, 0x98,
386 self.assertBuilderEquals(b, [0x88, 0x77, 0x66, 0x55,
391 self.assertBuilderEquals(b, [0x88, 0x77, 0x66, 0x55,
396 self.assertBuilderEquals(b, [])
398 self.assertBuilderEquals(b, [0, 0, 0]) # align to 4bytes
400 self.assertBuilderEquals(b, [1, 0, 0, 0])
402 self.assertBuilderEquals(b, [1, 0, 0, 0, 1, 0, 0, 0]) # padding
407 self.assertBuilderEquals(b, [0, 0]) # align to 4bytes
409 self.assertBuilderEquals(b, [1, 0, 0])
411 self.assertBuilderEquals(b, [2, 1, 0, 0])
413 self.assertBuilderEquals(b, [2, 0, 0, 0, 2, 1, 0, 0]) # padding
418 self.assertBuilderEquals(b, [0, 0]) # align to 4bytes
420 self.assertBuilderEquals(b, [1, 0, 0, 0])
422 self.assertBuilderEquals(b, [1, 0, 0, 0, 1, 0, 0, 0]) # padding
427 self.assertBuilderEquals(b, []) # align to 4bytes
429 self.assertBuilderEquals(b, [0xCD, 0xAB])
431 self.assertBuilderEquals(b, [0xBA, 0xDC, 0xCD, 0xAB])
433 self.assertBuilderEquals(b, [2, 0, 0, 0, 0xBA, 0xDC, 0xCD, 0xAB])
440 self.assertBuilderEquals(b, [3, 0, 0, 0, 'f', 'o', 'o', 0])
443 self.assertBuilderEquals(b, [4, 0, 0, 0, 'm', 'o', 'o', 'p',
450 self.assertBuilderEquals(b, "\x0e\x00\x00\x00\xd0\xa6\xd0\xbb\xd1\x97" \
454 self.assertBuilderEquals(b, "\x18\x00\x00\x00\xef\xbe\x8c\xef\xbe\x91" \
464 self.assertBuilderEquals(b, [3, 0, 0, 0, 1, 2, 3, 0])
468 self.assertBuilderEquals(b, [4, 0, 0, 0, 4, 5, 6, 7, 0, 0, 0, 0,
475 self.assertBuilderEquals(b, [0, 0, 0, 0])
480 self.assertBuilderEquals(b, [3, 0, 0, 0, 1, 2, 3, 0])
493 self.assertBuilderEquals(b, [
502 self.assertBuilderEquals(b, [
525 self.assertBuilderEquals(b, [
537 self.assertBuilderEquals(b, [
563 self.assertBuilderEquals(b, [
574 self.assertBuilderEquals(b, [
600 self.assertBuilderEquals(b, [
611 self.assertBuilderEquals(b, [
637 self.assertBuilderEquals(b, [
648 self.assertBuilderEquals(b, [
674 self.assertBuilderEquals(b, [
683 self.assertBuilderEquals(b, [
745 self.assertBuilderEquals(b, [])
747 self.assertBuilderEquals(b, [4, 0, 4, 0, 4, 0, 0, 0])
751 self.assertBuilderEquals(b, [])
753 self.assertBuilderEquals(b, [])
756 self.assertBuilderEquals(b, [
767 self.assertBuilderEquals(b, [])
769 self.assertBuilderEquals(b, [])
772 self.assertBuilderEquals(b, [
784 self.assertBuilderEquals(b, [
799 self.assertBuilderEquals(b, [
815 self.assertBuilderEquals(b, [
833 self.assertBuilderEquals(b, [
850 self.assertBuilderEquals(b, [
872 self.assertBuilderEquals(b, [
898 self.assertBuilderEquals(b, [
921 self.assertBuilderEquals(b, [
943 self.assertBuilderEquals(b, [
973 self.assertBuilderEquals(b, [
1014 self.assertBuilderEquals(b, [
1048 self.assertBuilderEquals(b, [
1072 self.assertBuilderEquals(b, [