class_docstr: Unit tests specific to retry decorator.
class_docstr_tok: ["Unit","tests","specific","to","retry","decorator","."]
docstr: Test that delay times are correct.
docstr_tok: ["Test","that","delay","times","are","correct","."]
code: def testRetryWaitsInitialRetryDelaySec(self, mockTime, mockSleep):
      """Test that delay times are correct."""
  
      self.mockSleepTime(mockTime, mockSleep)
  
      retryDecorator = decorators.retry(
          timeoutSec=30, initialRetryDelaySec=2, maxRetryDelaySec=10
      )
  
      testFunction = Mock(
          side_effect=TestParentException("Test exception"),
          __name__="testFunction",
          autospec=True,
      )
  
      with self.assertRaises(TestParentException):
          retryDecorator(testFunction)()
  
      self.assertEqual(
          mockSleep.mock_calls,
          [call(2), call(4), call(8), call(10), call(10)],
      )
  
      self.assertEqual(testFunction.call_count, 6)
  
imports: from mock import patch, call, Mock
  from nupic.support.unittesthelpers.testcasebase import unittest
  from nupic.support import decorators
label_desc: Use image node_id 3 for calling the RetryDecoratorTest obj's underlying member method code with example usage: obj.testRetryWaitsInitialRetryDelaySec(mockTime, mockSleep) without return types