mirror of
https://github.com/aykhans/AzSuicideDataVisualization.git
synced 2025-04-21 18:23:35 +00:00
20 lines
644 B
Python
20 lines
644 B
Python
# Copyright (C) PyZMQ Developers
|
|
# Distributed under the terms of the Modified BSD License.
|
|
|
|
import zmq
|
|
import zmq.constants
|
|
|
|
|
|
def test_constants():
|
|
assert zmq.POLLIN is zmq.PollEvent.POLLIN
|
|
assert zmq.PUSH is zmq.SocketType.PUSH
|
|
assert zmq.constants.SUBSCRIBE is zmq.SocketOption.SUBSCRIBE
|
|
|
|
|
|
def test_socket_options():
|
|
assert zmq.IDENTITY is zmq.SocketOption.ROUTING_ID
|
|
assert zmq.IDENTITY._opt_type is zmq.constants._OptType.bytes
|
|
assert zmq.AFFINITY._opt_type is zmq.constants._OptType.int64
|
|
assert zmq.CURVE_SERVER._opt_type is zmq.constants._OptType.int
|
|
assert zmq.FD._opt_type is zmq.constants._OptType.fd
|