

@raises(socket.timeout)
@timed(2)
def test_unsubscribe_dontmnessage(self):
    "Test if we're unsubscribed, we don't get messages"
    m = Main()
    m.tcp_connect()
    m.send_connect([('login', '1.test'), ('passcode', 'test')])
    m.get_frame()
    m.send_frame('SUBSCRIBE', [('destination', config.TEST_TOPICS[0]), ('x-ebu-nofastreply', 'yes')], '')
    m.send_frame('UNSUBSCRIBE', [('destination', config.TEST_TOPICS[0])], '')
    m.send_frame('SEND', [('destination', config.TEST_TOPICS[0])], str(uuid.uuid4()))
    m.socket.settimeout(3)
    self.get_frame()

dataset/ETHPy150Open ebu/radiodns-plugit/RadioVisServer/tests.py MainTests.test_unsubscribe_dontmnessage/VarMisuse@151/235 `m`->`self`