Created
August 26, 2014 08:09
-
-
Save dsociative/9ac2698971d29ffb96d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@pytest.fixture | |
def gate_socket(): | |
socket = zmq.Context(1).socket(zmq.REQ) | |
socket.connect(GATE_CHANNEL) | |
return socket | |
def test_executor(performer): | |
assert performer.executor(params('user')) == USER_AUTH_RESPONSE | |
def test_command(performer_process, gate_socket): | |
gate_socket.send_json(params('user')) | |
assert gate_socket.recv_json() == USER_AUTH_RESPONSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment