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

Method test_add_node_bad_args

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

Source from the content-addressed store, hash-verified

87 # FIXME : finish
88
89 def test_add_node_bad_args(self):
90 obj = self.opc.get_objects_node()
91
92 with self.assertRaises(TypeError):
93 fold = obj.add_folder(1.2, "kk")
94
95 with self.assertRaises(TypeError):
96 fold = obj.add_folder(ua.UaError, "khjh")
97
98 with self.assertRaises(ua.UaError):
99 fold = obj.add_folder("kjk", 1.2)
100
101 with self.assertRaises(TypeError):
102 fold = obj.add_folder("i=0;s='oooo'", 1.2)
103
104 with self.assertRaises(ua.UaError):
105 fold = obj.add_folder("i=0;s='oooo'", "tt:oioi")
106
107 def test_delete_nodes(self):
108 obj = self.opc.get_objects_node()

Callers

nothing calls this directly

Calls 2

add_folderMethod · 0.80
get_objects_nodeMethod · 0.45

Tested by

no test coverage detected