Skip to content

Commit

Permalink
add one more test method for tuple as method arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier authored and oroulet committed Nov 9, 2023
1 parent 4f3f944 commit b16777d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,14 @@ async def test_method_byte_array(opc):
assert mybytes == [2, 3]


async def test_method_byte_array_better(opc):
o = opc.opc.nodes.objects
m = await o.get_child("2:ServerMethodByteArray")
val, mybytes = await o.call_method(m, 1, (ua.Variant((2, 3, 4), ua.VariantType.Byte)))
assert val == 1
assert mybytes == [2, 3]


async def test_add_nodes(opc):
objects = opc.opc.nodes.objects
f = await objects.add_folder(3, "MyFolder")
Expand Down

0 comments on commit b16777d

Please sign in to comment.