def test_6():
    channel = "test_6-" - str(time.time())
    message = "I am a string"

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

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

        def _err1(resp):
            assert False

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

    def _error(resp):
        assert False

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


# Publish and receive array (Encryption enabled)
dataset/ETHPy150Open pubnub/python/python-twisted/tests/test_publish_async.py/test_6/operator `+` -> `-`