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

Method test_string_to_variant_localized_text

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

Source from the content-addressed store, hash-verified

238 self.assertEqual(val_to_string(obj), string)
239
240 def test_string_to_variant_localized_text(self):
241 string = "_This is my string"
242 # string = "_This is my nøåæ"FIXME: does not work with python2 ?!?!
243 obj = ua.LocalizedText(string)
244 self.assertEqual(string_to_val(string, ua.VariantType.LocalizedText), obj)
245 self.assertEqual(val_to_string(obj), string)
246
247 def test_string_to_val_xml_element(self):
248 string = "<p> titi toto </p>"

Callers

nothing calls this directly

Calls 2

string_to_valFunction · 0.90
val_to_stringFunction · 0.90

Tested by

no test coverage detected