def test_int_coder(self): coder = IntCoder() self.check_coder(coder, -2147483648, 2147483647)
def test_tuple_coder(self): field_coders = [IntCoder(), CharCoder(), CharCoder()] tuple_coder = TupleCoder(field_coders=field_coders) data = (1, "Hello", "Hi") self.check_coder(tuple_coder, data)