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

Method test_method_array2

tests/tests_common.py:577–583  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

575 self.assertEqual(cm.exception.code, ua.StatusCodes.BadOutOfMemory)
576
577 def test_method_array2(self):
578 o = self.opc.get_objects_node()
579 m = o.get_child("2:ServerMethodArray2")
580 result = o.call_method(m, [1.1, 3.4, 9])
581 self.assertEqual(result, [2.2, 6.8, 18])
582 result = call_method_full(o, m, [1.1, 3.4, 9])
583 self.assertEqual(result.OutputArguments, [[2.2, 6.8, 18]])
584
585 def test_method_tuple(self):
586 o = self.opc.get_objects_node()

Callers

nothing calls this directly

Calls 4

call_method_fullFunction · 0.90
get_childMethod · 0.80
call_methodMethod · 0.80
get_objects_nodeMethod · 0.45

Tested by

no test coverage detected