Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
opcua-asyncio
Commits
cdf6aa16
Commit
cdf6aa16
authored
Dec 20, 2015
by
olivier R-D
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add test for uaread
parent
7f5d17e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
tests/tests.py
tests/tests.py
+7
-1
No files found.
tests/tests.py
View file @
cdf6aa16
...
...
@@ -934,8 +934,9 @@ class TestCmdLines(unittest.TestCase):
self
.
srv_url
=
'opc.tcp://localhost:%d'
%
port_num2
self
.
srv
.
set_endpoint
(
self
.
srv_url
)
objects
=
self
.
srv
.
get_objects_node
()
obj
=
objects
.
add_object
(
4
,
"
browsetest
"
)
obj
=
objects
.
add_object
(
4
,
"
directory
"
)
var
=
obj
.
add_variable
(
4
,
"variable"
,
1.999
)
var2
=
obj
.
add_variable
(
4
,
"variable2"
,
1.777
)
self
.
srv
.
start
()
def
test_uals
(
self
):
...
...
@@ -946,6 +947,11 @@ class TestCmdLines(unittest.TestCase):
s
=
subprocess
.
check_output
([
"python3"
,
"tools/uals"
,
"--url"
,
self
.
srv_url
,
"-d"
,
"3"
])
self
.
assertIn
(
b"1.999"
,
s
)
def
test_uaread
(
self
):
s
=
subprocess
.
check_output
([
"python3"
,
"tools/uaread"
,
"--url"
,
self
.
srv_url
,
"--path"
,
"0:Objects,4:directory,4:variable2"
])
self
.
assertIn
(
b"1.777"
,
s
)
self
.
assertNotIn
(
b"1.999"
,
s
)
@
classmethod
def
tearDownClass
(
self
):
self
.
srv
.
stop
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment