Debian Codegraph @

tests/test_connection.py

raw symbols SCIP
1 # -*- coding: utf-8 -*-
2
3 from __future__ import absolute_import
4
5 import pytest
6
7 from pyxs.connection import _XenBusTransport, _UnixSocketTransport
8 from pyxs.exceptions import ConnectionError
9
10
11 @pytest.mark.parametrize("_transport", [
12 _XenBusTransport, _UnixSocketTransport
13 ])
14 def test_transport_init_failed(tmpdir, _transport):
15 with pytest.raises(ConnectionError):
16 _transport(str(tmpdir.join("unexisting")))