Example #1
0
 def test_equals_2(self):
     self.assertEqual(to_bytes(1), ['00000001'])
Example #2
0
 def test_equals(self):
     self.assertEqual(to_bytes(0), ['00000000'])
Example #3
0
 def test_equals_7(self):
     self.assertEqual(to_bytes(0x1020304),
                      ['00000001', '00000010', '00000011', '00000100'])
Example #4
0
 def test_equals_6(self):
     self.assertEqual(to_bytes(0xffff), ['11111111', '11111111'])
Example #5
0
 def test_equals_5(self):
     self.assertEqual(to_bytes(0x000000000101), ['00000001', '00000001'])
Example #6
0
 def test_equals_3(self):
     self.assertEqual(to_bytes(257), ['00000001', '00000001'])