MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / test_custom_variant_array

Method test_custom_variant_array

tests/tests_unit.py:305–309  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

303
304
305 def test_custom_variant_array(self):
306 v = ua.Variant([b"ljsdfljds", b"lkjsdljksdf"], ua.VariantTypeCustom(40))
307 v2 = variant_from_binary(ua.utils.Buffer(variant_to_binary(v)))
308 self.assertEqual(v.VariantType, v2.VariantType)
309 self.assertEqual(v, v2)
310
311 def test_guid(self):
312 v = ua.Variant(uuid.uuid4(), ua.VariantType.Guid)

Callers

nothing calls this directly

Calls 2

variant_from_binaryFunction · 0.90
variant_to_binaryFunction · 0.90

Tested by

no test coverage detected