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

        class UnknownError(Exception):
            pass

        callCount = 1
        for delay in (10, 20, 40, 80, 160, 240, 240):
            # Fail the connection attempt with a ConnectError
            self.api.connectFail(UnknownError())
            self.clock.advance(0)

            # The error is logged
            self.assertEquals(1, len(self.flushLoggedErrors(UnknownError)))

            # A reconnect is done after the delay
            self.clock.advance(delay)
            callCount += 1
            self.assertEqual(callCount, len(self.api.filterCalls))
Get the number of floats in the array
dataset/ETHPy150Open dustin/twitty-twister/twittytwister/test/test_twitter.py/TwitterMonitorTest.test_connectUnknownError--crossover with--dataset/ETHPy150Open chriso/gauged/gauged/structures/float_array.py/FloatArray.__len__