Select Git revision
AbstractDB.h
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
test_unb2_sim.py 721 B
# -*- coding: utf-8 -*-
#
# This file is part of the LOFAR 2.0 Station Software
#
#
#
# Distributed under the terms of the APACHE license.
# See LICENSE.txt for more info.
from asyncua import Client
from integration_test import base
class TestUNB2Sim(base.IntegrationAsyncTestCase):
def setUp(self):
super(TestUNB2Sim, self).setUp()
async def test_opcua_connection(self):
"""Check if we can connect to unb2-sim"""
client = Client("opc.tcp://unb2-sim:4844")
root_node = None
await client.connect()
try:
root_node = await client.get_root_node()
finally:
await client.disconnect()
self.assertNotEqual(None, root_node)