def test_watchdog_send_good_data_text(self):
        """Test if the watchdog send excepted data on topic /text"""

        m = Main()
        m.tcp_connect()
        m.send_connect([('login', '4.test'), ('passcode', 'test')])
        m.get_frame()  # Connected frame

        # Send a message, then subscrible
        m.send_frame('SUBSCRIBE',
                     [('destination', config.TEST_WATCHDOG_TOPIC[0][0] + 'text'), ('x-ebu-nofastreply', 'yes')], '')

        m.socket.settimeout(config.TEST_FB_FALLBACK_TIME + config.TEST_FB_FALLBACK_CHECK)

        (result, headers, body) = m.get_frame()
        eq_(result, 'MESSAGE')
        eq_(body, 'TEXT ' + config.TEST_CHANNEL_DEFAULT['radiotext'])
        eq_(get_header_value(headers, 'trigger-time'), 'NOW')
        eq_(get_header_value(headers, 'link'), config.TEST_CHANNEL_DEFAULT['radiolink'])
dataset/ETHPy150Open ebu/radiodns-plugit/RadioVisServer/tests.py/MainTests.test_watchdog_send_good_data_text/original