Skip to content
Snippets Groups Projects
Select Git revision
  • b3909cd27d2e06173c23e9abb982dd3b7190f173
  • master default protected
  • image_support_for_boolean
  • image_support_lofar_fixes
  • image_support
  • moved-to-gitlab
  • remove-libpqxx-submodule
  • v0.11.2
  • v0.11.1
  • v0.11.0
  • v0.10.0
  • v0.9.1
  • v0.9.0
13 results

AbstractDB.h

Blame
  • 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)