def test_connectConnecting(self):
        self.setUpState('connecting')

        # Try to connect.
        self.assertRaises(twitter.Error, self.monitor.connect)

        self.clock.advance(0)
        self.assertEqual(1, len(self.api.filterCalls), 'Extra connect')
Don't connect while connecting.
dataset/ETHPy150Open dustin/twitty-twister/twittytwister/test/test_twitter.py/TwitterMonitorTest.test_connectConnecting