MCPcopy Create free account
hub / github.com/apache/thrift / testSimpleMessage

Method testSimpleMessage

test/py/TSimpleJSONProtocolTest.py:61–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59 self._deserialize, VersioningTestV1, b'{}')
60
61 def testSimpleMessage(self):
62 v1obj = VersioningTestV1(
63 begin_in_both=12345,
64 old_string='aaa',
65 end_in_both=54321)
66 expected = dict(begin_in_both=v1obj.begin_in_both,
67 old_string=v1obj.old_string,
68 end_in_both=v1obj.end_in_both)
69 actual = json.loads(self._serialize(v1obj).decode('ascii'))
70
71 self._assertDictEqual(expected, actual)
72
73 def testComplicated(self):
74 v2obj = VersioningTestV2(

Callers

nothing calls this directly

Calls 3

_serializeMethod · 0.95
_assertDictEqualMethod · 0.95
decodeMethod · 0.45

Tested by

no test coverage detected