def test_basic(self): self.assertEquals('\x00', _delta_encode_size(0)) self.assertEquals('\x01', _delta_encode_size(1)) self.assertEquals('\xfa\x01', _delta_encode_size(250)) self.assertEquals('\xe8\x07', _delta_encode_size(1000)) self.assertEquals('\xa0\x8d\x06', _delta_encode_size(100000))
def test_basic(self): self.assertEqual(b"\x00", _delta_encode_size(0)) self.assertEqual(b"\x01", _delta_encode_size(1)) self.assertEqual(b"\xfa\x01", _delta_encode_size(250)) self.assertEqual(b"\xe8\x07", _delta_encode_size(1000)) self.assertEqual(b"\xa0\x8d\x06", _delta_encode_size(100000))