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

Method test_text

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

Source from the content-addressed store, hash-verified

558 self.assertEqual(v2.Dimensions, [2, 3])
559
560 def test_text(self):
561 t1 = ua.LocalizedText('Root')
562 t2 = ua.LocalizedText('Root')
563 t3 = ua.LocalizedText('root')
564 self.assertEqual(t1, t2)
565 self.assertNotEqual(t1, t3)
566 t4 = struct_from_binary(ua.LocalizedText, ua.utils.Buffer(struct_to_binary(t1)))
567 self.assertEqual(t1, t4)
568
569 def test_message_chunk(self):
570 pol = ua.SecurityPolicy()

Callers

nothing calls this directly

Calls 2

struct_from_binaryFunction · 0.90
struct_to_binaryFunction · 0.90

Tested by

no test coverage detected