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'])
>>> get_url_param("http://www.example.com/?key=1", "key")
dataset/ETHPy150Open twisted/nevow/nevow/test/test_athena.py/ConnectionCallbackTests.test_connectionMadeLost--crossover with--dataset/ETHPy150Open hozn/stravalib/stravalib/tests/functional/test_client_utils.py/ClientAuthorizationUrlTest.get_url_param