def test_write_vints(self): s = StringStream() s.write_Vint(34) s.write_Vint(2053) s.write_Vint(314159265) values = list(StringStream(s.getstring()).read_values()) self.assertEquals(values,[34,2053,314159265])
def test_write_int(self): s = StringStream() s.write_int(34) self.assertEqual(StringStream(s.getstring()).read_int(),34)
def test_write_bigger_int(self): s = StringStream() s.write_int(128) self.assertEqual(StringStream(s.getstring()).read_int(),128)