@timed(2)
    def test_message_then_subscrible(self):
        m = Main()
        m.tcp_connect()
        m.send_connect([('login', '1.test'), ('passcode', 'test')])
        m.get_frame()  # Connected frame

        msg = str(uuid.uuid4())

        m.send_frame('SEND', [('destination', config.TEST_TOPICS[0])], msg)
        time.sleep(0.5)
        m.send_frame('SUBSCRIBE', [('destination', config.TEST_TOPICS[0])], '')
        (result, headers, body) = m.get_frame()
        eq_(result, 'MESSAGE')
        eq_(body, msg)
        eq_(get_header_value(headers, 'destination'), config.TEST_TOPICS[0])
Securely fetch a user by id, username, email or auth key
dataset/ETHPy150Open ebu/radiodns-plugit/RadioVisServer/tests.py/MainTests.test_message_then_subscrible--crossover with--dataset/ETHPy150Open quantmind/lux/lux/extensions/auth/backends.py/AuthMixin.get_user