def test_almighty_state_called_command(state_in, state_out, called_cmd, monkeypatch): almighty = Almighty() almighty.state = state_in almighty.run(False) assert called_command == called_cmd assert almighty.state == state_out
def test_almighty_state_Qget(command, state, monkeypatch): FakeZmq.recv_msgs[0] = [{'cmd': command}] almighty = Almighty() almighty.run(False) assert almighty.state == state