MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / assertNotRaises

Method assertNotRaises

tests/tests_common.py:79–83  ·  view source on GitHub ↗
(self, exc_type)

Source from the content-addressed store, hash-verified

77
78 @contextmanager
79 def assertNotRaises(self, exc_type):
80 try:
81 yield None
82 except exc_type:
83 raise self.failureException('{} raised'.format(exc_type.__name__))
84
85 def test_find_servers(self):
86 servers = self.opc.find_servers()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected