test_etc.py revision 781d71db
1# Copyright (c) PyZMQ Developers.
2# Distributed under the terms of the Modified BSD License.
3
4import sys
5
6import zmq
7
8from . import skip_if
9
10@skip_if(zmq.zmq_version_info() < (4,1), "libzmq < 4.1")
11def test_has():
12    assert not zmq.has('something weird')
13    has_ipc = zmq.has('ipc')
14    not_windows = not sys.platform.startswith('win')
15    assert has_ipc == not_windows
16