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
21713f43
Commit
21713f43
authored
Dec 22, 2015
by
Zhang, Hua
Committed by
olivier R-D
Dec 22, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: test should call default python version
parent
a154b429
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tests/tests.py
tests/tests.py
+6
-6
No files found.
tests/tests.py
View file @
21713f43
...
...
@@ -941,25 +941,25 @@ class TestCmdLines(unittest.TestCase):
self
.
srv
.
start
()
def
test_uals
(
self
):
s
=
subprocess
.
check_output
([
"python
3
"
,
"tools/uals"
,
"--url"
,
self
.
srv_url
])
s
=
subprocess
.
check_output
([
"python"
,
"tools/uals"
,
"--url"
,
self
.
srv_url
])
self
.
assertIn
(
b"i=85"
,
s
)
self
.
assertNotIn
(
b"i=89"
,
s
)
self
.
assertNotIn
(
b"1.999"
,
s
)
s
=
subprocess
.
check_output
([
"python
3
"
,
"tools/uals"
,
"--url"
,
self
.
srv_url
,
"-d"
,
"3"
])
s
=
subprocess
.
check_output
([
"python"
,
"tools/uals"
,
"--url"
,
self
.
srv_url
,
"-d"
,
"3"
])
self
.
assertIn
(
b"1.999"
,
s
)
def
test_uaread
(
self
):
s
=
subprocess
.
check_output
([
"python
3
"
,
"tools/uaread"
,
"--url"
,
self
.
srv_url
,
"--path"
,
"0:Objects,4:directory,4:variable"
])
s
=
subprocess
.
check_output
([
"python"
,
"tools/uaread"
,
"--url"
,
self
.
srv_url
,
"--path"
,
"0:Objects,4:directory,4:variable"
])
self
.
assertIn
(
b"1.999"
,
s
)
def
test_uawrite
(
self
):
s
=
subprocess
.
check_output
([
"python
3
"
,
"tools/uawrite"
,
"--url"
,
self
.
srv_url
,
"--path"
,
"0:Objects,4:directory,4:variable2"
,
"1.789"
])
s
=
subprocess
.
check_output
([
"python
3
"
,
"tools/uaread"
,
"--url"
,
self
.
srv_url
,
"--path"
,
"0:Objects,4:directory,4:variable2"
])
s
=
subprocess
.
check_output
([
"python"
,
"tools/uawrite"
,
"--url"
,
self
.
srv_url
,
"--path"
,
"0:Objects,4:directory,4:variable2"
,
"1.789"
])
s
=
subprocess
.
check_output
([
"python"
,
"tools/uaread"
,
"--url"
,
self
.
srv_url
,
"--path"
,
"0:Objects,4:directory,4:variable2"
])
self
.
assertIn
(
b"1.789"
,
s
)
self
.
assertNotIn
(
b"1.999"
,
s
)
def
test_uadiscover
(
self
):
s
=
subprocess
.
check_output
([
"python
3
"
,
"tools/uadiscover"
,
"--url"
,
self
.
srv_url
])
s
=
subprocess
.
check_output
([
"python"
,
"tools/uadiscover"
,
"--url"
,
self
.
srv_url
])
self
.
assertIn
(
b"opc.tcp://localhost"
,
s
)
self
.
assertIn
(
b"FreeOpcUa"
,
s
)
self
.
assertIn
(
b"urn:freeopcua:python:server"
,
s
)
...
...
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