title: unit test case for super() in python
body: <p>I have a class as:</p>
  <pre><code>&quot;&quot;&quot;A&quot;&quot;&quot;
  
  from clay import config
  from datetime import timedelta
  from &lt;path&gt; import B
  
  EXECUTION_TIMEOUT = timedelta(minutes=30)
  
  class A(B):
      &quot;&quot;&quot;Crawler task for A&quot;&quot;&quot;
  
      def __init__(self, *args, **kwargs):
          &quot;&quot;&quot;Initialization.&quot;&quot;&quot;
          super(A, self).__init__(execution_timeout=EXECUTION_TIMEOUT, *args, **kwargs)
  
  </code></pre>
  <p>I have a test file as :</p>
  <pre><code>&quot;&quot;&quot;Test class for A&quot;&quot;&quot;
  from datetime import timedelta, datetime
  from doubles import allow
  from mock import patch, MagicMock
  from unittest import TestCase
  import mock
  
  from &lt;path&gt; import A
  
  
  class JobInfoHandler:
      &quot;&quot;&quot;Mock job info.&quot;&quot;&quot;
  
      def __init__(self):
          &quot;&quot;&quot;Init Method.&quot;&quot;&quot;
          self.crawlerConfig = None
          pass
  
  
  class TestA(TestCase):
      &quot;&quot;&quot;Test class for A.&quot;&quot;&quot;
  
      def setUp(self):
          &quot;&quot;&quot;Create instance of class to test.&quot;&quot;&quot;
          job_info_ob = JobInfoHandler()
          self.obj_a = A(owner='arahej', task_id='12',
                                                schedule_interval=timedelta(minutes=60), job_info=job_info_ob)
  
  </code></pre>
  <p>When I run my test coverage command. The below line is not covered :</p>
  <p><code>super(A, self).__init__(execution_timeout=EXECUTION_TIMEOUT, *args, **kwargs)</code></p>
  <p>Can anyone help me with how to cover <code>super</code> here. I tried to mock or patch, but it didn't worked.</p>