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

Method testSymbolListNoRaiseError

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

Source from the content-addressed store, hash-verified

337 self.assertRaises(TypeError, SymbolList, ['one', {'two': 3}])
338
339 def testSymbolListNoRaiseError(self):
340 a = SymbolList(['one', 'two', 'three', 4], raise_on_error=False)
341 b = SymbolList([symbol('one'), symbol('two'), symbol('three'), 4], raise_on_error=False)
342 c = SymbolList(raise_on_error=False)
343 c.append('one')
344 c.extend([symbol('two'), 'three', 4])
345 d1 = SymbolList(['one'], raise_on_error=False)
346 d2 = SymbolList(['two', symbol('three'), 4], raise_on_error=False)
347 d = d1 + d2
348 e = SymbolList(['one'], raise_on_error=False)
349 e += SymbolList(['two', symbol('three'), 4], raise_on_error=False)
350 f = SymbolList(['one', 'hello', 'goodbye', 'what?'], raise_on_error=False)
351 f[1] = symbol('two')
352 f[2] = 'three'
353 f[3] = 4
354 g = SymbolList(a, raise_on_error=False)
355 assert a == b == c == d == e == f == g
356
357 def _test(self, dtype, *values, **kwargs):
358 eq = kwargs.get("eq", lambda x, y: x == y)

Callers

nothing calls this directly

Calls 4

appendMethod · 0.95
extendMethod · 0.95
SymbolListClass · 0.90
symbolClass · 0.90

Tested by

no test coverage detected