def test_connectionMadeLost(self):
        self.assertEqual(self.element.events, [])
        self.page._connectionMade()
        self.assertEqual(self.element.events, ['made'])
        self.page._disconnected(ConnectionLost('test'))
        self.assertEqual(self.element.events, ['made', 'lost'])
A widget's connectionMade method will be called when the transport is
dataset/ETHPy150Open twisted/nevow/nevow/test/test_athena.py/ConnectionCallbackTests.test_connectionMadeLost