

@nottest
def test_if_message_is_send(self, topicSend, topicSubcrible):
    'Generic function for GCC/CC tests, testing if a message is got using a topic for sending and a topic to subscrible'
    m = Main()
    m.tcp_connect()
    m.send_connect([('login', '3.test'), ('passcode', 'test')])
    m.get_frame()
    topicSubcrible.send_frame('SUBSCRIBE', [('destination', topicSubcrible), ('x-ebu-nofastreply', 'yes')], '')
    msg = str(uuid.uuid4())
    m.send_frame('SEND', [('destination', topicSend)], msg)
    (result, headers, body) = m.get_frame()
    eq_(result, 'MESSAGE')
    eq_(body, msg)
    eq_(get_header_value(headers, 'destination'), topicSubcrible)

dataset/ETHPy150Open ebu/radiodns-plugit/RadioVisServer/tests.py MainTests.test_if_message_is_send/VarMisuse@56/127 `m`->`topicSubcrible`