

@raises(socket.timeout)
@timed(2)
def test_unsubscribe_id(self):
    'Test we can unsubscribe, using ids'
    m = Main()
    m.tcp_connect()
    m.send_connect([])
    m.get_frame()
    id = str(uuid.uuid4())
    m.send_frame('SUBSCRIBE', [('destination', config.TEST_TOPICS[0]), ('id', id), ('x-ebu-nofastreply', 'yes')], '')
    m.send_frame('UNSUBSCRIBE', [('id', id)], '')
    m.socket.settimeout(3)
    m.get_frame()

dataset/ETHPy150Open ebu/radiodns-plugit/RadioVisServer/tests.py MainTests.test_unsubscribe_id/original