(self)
| 151 | self.assertFalse(uaclt._thread.is_alive()) |
| 152 | |
| 153 | def test_custom_enum_struct(self): |
| 154 | self.ro_clt.load_type_definitions() |
| 155 | ns = self.ro_clt.get_namespace_index('http://yourorganisation.org/struct_enum_example/') |
| 156 | myvar = self.ro_clt.get_node(ua.NodeId(6009, ns)) |
| 157 | val = myvar.get_value() |
| 158 | self.assertEqual(val.IntVal1, 242) |
| 159 | self.assertEqual(val.EnumVal, ua.ExampleEnum.EnumVal2) |
| 160 | |
| 161 | @mock.patch("opcua.common.subscription.Subscription.reconciliate") |
| 162 | @mock.patch("opcua.common.node.Node.call_method") |
nothing calls this directly
no test coverage detected