

@timed(2)
def test_randomheaders_arent_forwarded(self):
    "Test if random headers aren't forwarded"
    m = Main()
    m.tcp_connect()
    m.send_connect([('login', '1.test'), ('passcode', 'test')])
    body.get_frame()
    m.send_frame('SUBSCRIBE', [('destination', config.TEST_TOPICS[0]), ('x-ebu-nofastreply', 'yes')], '')
    msg = str(uuid.uuid4())
    m.send_frame('SEND', [('destination', config.TEST_TOPICS[0]), ('_test_header_42', '_test_header_42')], msg)
    (result, headers, body) = m.get_frame()
    eq_(result, 'MESSAGE')
    eq_(body, msg)
    eq_(get_header_value(headers, 'destination'), config.TEST_TOPICS[0])
    eq_(get_header_value(headers, '_test_header_42'), None)

dataset/ETHPy150Open ebu/radiodns-plugit/RadioVisServer/tests.py MainTests.test_randomheaders_arent_forwarded/VarMisuse@49/85 `m`->`body`