def test_limits(self):
    self.assertRaises(AssertionError, jsonable2thrift,
      dict(a_byte=128), TestManyTypes)
    self.assertRaises(AssertionError, jsonable2thrift,
      dict(a_byte=-129), TestManyTypes)
    self.assertRaises(AssertionError, jsonable2thrift,
      dict(a_byte="not_a_number"), TestManyTypes)
Checks that bound checking works.
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/lib/thrift_util_test.py/TestJsonable2Thrift.test_limits