MCPcopy Create free account
hub / github.com/apache/qpid-proton / testCopyNestedArray

Method testCopyNestedArray

python/tests/proton_tests/codec.py:482–492  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

480 assert dst.format() == self.data.format()
481
482 def testCopyNestedArray(self):
483 nested = [Array(UNDESCRIBED, Data.LIST,
484 ["first", [Array(UNDESCRIBED, Data.INT, 1, 2, 3)]],
485 ["second", [Array(UNDESCRIBED, Data.INT, 1, 2, 3)]],
486 ["third", [Array(UNDESCRIBED, Data.INT, 1, 2, 3)]],
487 ),
488 "end"]
489 self.data.put_object(nested)
490 dst = Data()
491 dst.copy(self.data)
492 assert dst.format() == self.data.format()
493
494 def testRoundTrip(self):
495 obj = {symbol("key"): timestamp(1234),

Callers

nothing calls this directly

Calls 5

copyMethod · 0.95
formatMethod · 0.95
ArrayClass · 0.90
DataClass · 0.90
put_objectMethod · 0.80

Tested by

no test coverage detected