Beispiel #1
0
 def test_multiple(self):
     i = 0x100000
     o = "\xc0\x80\x00"
     self.assertEqual(writeVarLength(i), o)
Beispiel #2
0
 def test_zero(self):
     i = 0x0
     o = "\x00"
     self.assertEqual(writeVarLength(i), o)
Beispiel #3
0
 def test_single(self):
     i = 0xc8
     o = "\x81\x48"
     self.assertEqual(writeVarLength(i), o)