Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/c/o/commons-HEAD/tests/python/twitter/thrift/util/test_generic_struct_parser.py   commons(Download)
  def test_read_binary_encoded(self):
    x = structs_for_testing.TestStruct()
    x.field2 = True
    x.field4 = [2, 4, 6, 8]
    x.field7 = 1.2

src/c/o/commons-HEAD/tests/python/twitter/thrift/text/test_thrift_json_encoder.py   commons(Download)
  def test_encode_thrift_to_json(self):
    x = structs_for_testing.TestStruct()
    x.field2 = True
    x.field4 = [2, 4, 6, 8]
    x.field7 = 1.2