autobahn.asyncio.test.test_wamp_runner


Module Contents

Classes

TestApplicationRunner

Test the autobahn.asyncio.wamp.ApplicationRunner class.

class autobahn.asyncio.test.test_wamp_runner.TestApplicationRunner(methodName='runTest')[source]

Bases: unittest.TestCase

Test the autobahn.asyncio.wamp.ApplicationRunner class.

_assertRaisesRegex(exception, error, *args, **kw)[source]
test_explicit_SSLContext()[source]

Ensure that loop.create_connection is called with the exact SSL context object that is passed (as ssl) to the __init__ method of ApplicationRunner.

test_omitted_SSLContext_insecure()[source]

Ensure that loop.create_connection is called with ssl=False if no ssl argument is passed to the __init__ method of ApplicationRunner and the websocket URL starts with “ws:”.

test_omitted_SSLContext_secure()[source]

Ensure that loop.create_connection is called with ssl=True if no ssl argument is passed to the __init__ method of ApplicationRunner and the websocket URL starts with “wss:”.

test_conflict_SSL_True_with_ws_url()[source]

ApplicationRunner must raise an exception if given an ssl value of True but only a “ws:” URL.

test_conflict_SSLContext_with_ws_url()[source]

ApplicationRunner must raise an exception if given an ssl value that is an instance of SSLContext, but only a “ws:” URL.