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

Method test_enumstrings_getvalue

tests/tests_client.py:132–139  ·  view source on GitHub ↗

The real exception is server side, but is detected by using a client. Alldue the server trace is also visible on the console. The client only 'sees' an TimeoutError

(self)

Source from the content-addressed store, hash-verified

130 self.assertEqual(state[0], 2)
131
132 def test_enumstrings_getvalue(self):
133 ''' The real exception is server side, but is detected by using a client.
134 Alldue the server trace is also visible on the console.
135 The client only 'sees' an TimeoutError
136 '''
137 nenumstrings = self.clt.get_node(ua.ObjectIds.AxisScaleEnumeration_EnumStrings)
138 with self.assertNotRaises(Exception):
139 value = ua.Variant(nenumstrings.get_value())
140
141 def test_uasocketclient_connect_disconnect(self):
142 """Initialize, connect, and disconnect a UaSocketClient

Callers

nothing calls this directly

Calls 3

assertNotRaisesMethod · 0.80
get_valueMethod · 0.80
get_nodeMethod · 0.45

Tested by

no test coverage detected