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

Method test_guid

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

Source from the content-addressed store, hash-verified

309 self.assertEqual(v, v2)
310
311 def test_guid(self):
312 v = ua.Variant(uuid.uuid4(), ua.VariantType.Guid)
313 v2 = variant_from_binary(ua.utils.Buffer(variant_to_binary(v)))
314 self.assertEqual(v.VariantType, v2.VariantType)
315 self.assertEqual(v, v2)
316
317 def test_nodeid(self):
318 nid = ua.NodeId()

Callers

nothing calls this directly

Calls 2

variant_from_binaryFunction · 0.90
variant_to_binaryFunction · 0.90

Tested by

no test coverage detected