

@timed(2)
def test_disconnect(self):
    'Test we can disconnect'
    m = Main()
    m.tcp_connect()
    m.send_connect([('login', '1.test'), ('passcode', 'test')])
    m.get_frame()
    m.send_frame('DISCONNECT', [], '')
    m.socket.settimeout(3)
    data = m.socket.recv(1024)
    eq_(data, '')

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