Lines Matching refs:orig
730 orig = b'hello'
731 a = bytearray(orig)
733 self.assertEqual(a, orig + orig)
734 self.assertEqual(a[5:], orig)
737 a.extend(map(ord, orig * 25))
738 a.extend(ord(x) for x in orig * 25)
739 self.assertEqual(a, orig * 50)
740 self.assertEqual(a[-5:], orig)
742 a.extend(iter(map(ord, orig * 50)))
743 self.assertEqual(a, orig * 50)
744 self.assertEqual(a[-5:], orig)
746 a.extend(list(map(ord, orig * 50)))
747 self.assertEqual(a, orig * 50)
748 self.assertEqual(a[-5:], orig)
854 orig = b[:]
856 self.assertEqual(b, orig)
858 self.assertEqual(b, orig)
860 self.assertEqual(b, orig)
863 self.assertEqual(b, orig)
865 self.assertEqual(b, orig)
869 self.assertEqual(b, orig)
874 self.assertEqual(b, orig)