@timed(2)
    def test_disconnect(self):
        m = Main()
        m.tcp_connect()
        m.send_connect([('login', '1.test'), ('passcode', 'test')])
        m.get_frame()  # Connected frame

        m.send_frame('DISCONNECT', [], '')

        m.socket.settimeout(3)
        data = m.socket.recv(1024)
        eq_(data, '')  # Closed socket return None
Test we can disconnect
dataset/ETHPy150Open ebu/radiodns-plugit/RadioVisServer/tests.py/MainTests.test_disconnect