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

Method test_string_to_variant_qname

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

Source from the content-addressed store, hash-verified

232 self.assertEqual(statuscode.doc, statuscode2.doc)
233
234 def test_string_to_variant_qname(self):
235 string = "2:name"
236 obj = ua.QualifiedName("name", 2)
237 self.assertEqual(string_to_val(string, ua.VariantType.QualifiedName), obj)
238 self.assertEqual(val_to_string(obj), string)
239
240 def test_string_to_variant_localized_text(self):
241 string = "_This is my string"

Callers

nothing calls this directly

Calls 2

string_to_valFunction · 0.90
val_to_stringFunction · 0.90

Tested by

no test coverage detected