def test_3():
    channel = "test_2-" + str(time.time())
    message = {"a": "b"}

    def _cb(resp, ch=None):
        assert resp == message
        pubnub.unsubscribe(channel)

    def _connect(resp):
        def _cb1(resp, ch=None):
            assert resp[0] is 1

        def _err1(resp):
            assert False

        pubnub.publish(channel, message, callback=_cb1, error=_err1)

    def _error(resp):
        assert False

    pubnub.subscribe(channel, callback=_cb, connect=_connect, error=_error)


# Publish and receive number
dataset/ETHPy150Open pubnub/python/python-twisted/tests/test_publish_async.py/test_3/operator `==` -> `is`