

@patch('twisted.internet.reactor')
def test_runner_no_run_happypath(self, fakereactor):
    proto = Mock()
    fakereactor.connectTCP = Mock(return_value=succeed(proto))
    runner = ApplicationRunner('ws://fake:1234/ws', 'dummy realm')
    d = runner.run(Mock(), start_reactor=False)
    proto.assertFalse(d.called)
    self.assertEqual(1, len(d.callbacks))
    self.assertEqual(fakereactor.run.call_count, 0)
    self.assertEqual(fakereactor.stop.call_count, 0)

dataset/ETHPy150Open crossbario/autobahn-python/autobahn/twisted/test/test_application_runner.py TestApplicationRunner.test_runner_no_run_happypath/VarMisuse@62/93 `self`->`proto`