File tree 3 files changed +45
-2
lines changed
3 files changed +45
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- python tests.py
2
+ python tests/tests .py
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <UANodeSet xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xmlns : xsd =" http://www.w3.org/2001/XMLSchema" Version =" 1.02" LastModified =" 2013-03-06T05:36:44.0862658Z" xmlns =" http://opcfoundation.org/UA/2011/03/UANodeSet.xsd" >
3
+
4
+ <UAObject NodeId =" i=30001" BrowseName =" MyXMLFolder" >
5
+ <Description >A custom folder.</Description >
6
+ <References >
7
+ <Reference ReferenceType =" HasTypeDefinition" >i=61</Reference >
8
+ <Reference ReferenceType =" Organizes" IsForward =" false" >i=85</Reference >
9
+ </References >
10
+ </UAObject >
11
+
12
+
13
+ <UAObject NodeId =" i=30002" BrowseName =" MyXMLObject" >
14
+ <Description >A custom object node.</Description >
15
+ <References >
16
+ <Reference ReferenceType =" HasTypeDefinition" >i=58</Reference >
17
+ <Reference ReferenceType =" Organizes" IsForward =" false" >i=30001</Reference >
18
+ </References >
19
+ </UAObject >
20
+
21
+
22
+ <UAVariable NodeId =" i=30004" BrowseName =" MyXMLVariable" DataType =" String" >
23
+ <References >
24
+ <Reference ReferenceType =" HasTypeDefinition" >i=69</Reference >
25
+ <Reference ReferenceType =" Organizes" IsForward =" false" >i=30002</Reference >
26
+ </References >
27
+ <Value >
28
+ <String >StringValue</String >
29
+ </Value >
30
+ </UAVariable >
31
+
32
+ <UAVariable NodeId =" i=30005" BrowseName =" MyXMLProperty" DataType =" UInt32" >
33
+ <References >
34
+ <Reference ReferenceType =" HasTypeDefinition" >i=68</Reference >
35
+ <Reference ReferenceType =" HasProperty" IsForward =" false" >i=30002</Reference >
36
+ </References >
37
+ <Value >
38
+ <UInt32 >76</UInt32 >
39
+ </Value >
40
+ </UAVariable >
41
+
42
+
43
+ </UANodeSet >
Original file line number Diff line number Diff line change @@ -821,7 +821,7 @@ def func(parent, variant):
821
821
self .assertEqual (result , 4.2 )
822
822
823
823
def test_xml_import (self ):
824
- self .srv .import_xml ("custom_nodes.xml" )
824
+ self .srv .import_xml ("tests/ custom_nodes.xml" )
825
825
o = self .opc .get_objects_node ()
826
826
v = o .get_child (["MyXMLFolder" , "MyXMLObject" , "MyXMLVariable" ])
827
827
val = v .get_value ()
You can’t perform that action at this time.
0 commit comments