def test_ipv4_secure_websocket_connection_by_router_instance(
self, config_path, router
):
try:
ssl.PROTOCOL_TLSv1_2
except AttributeError:
pytest.skip('Python Environment does not support TLS')
with DateService(router=router) as service:
wait_for_registrations(service, 1)
client = Client(router=router)
with client:
wait_for_session(client)
result = client.rpc.get_todays_date()
today = date.today()
assert result == today.isoformat()
评论列表
文章目录