title: doctest doesn't test classes methods in a module
body: <p>I can't manage to have doctest test my modules classes methods.</p>
  
  <p>My module looks like that:</p>
  
  <pre><code>simplemod
  ├── A.py
  └── __init__.py
  </code></pre>
  
  <p><code>A.py</code> contains:</p>
  
  <pre><code>class A:
      def method(self):
          """This is a test
  
          &gt;&gt;&gt; True
          False
          """
          pass
  </code></pre>
  
  <p>(so the tests should fail)</p>
  
  <p><code>__init__.py</code> contains</p>
  
  <pre><code>from .A import A
  
  __test__ = {'A': A}
  </code></pre>
  
  <p>And then I run</p>
  
  <pre><code>&gt;&gt;&gt; import doctest, simplemod
  &gt;&gt;&gt; doctest.testmod(simplemod)
  TestResults(failed=0, attempted=0)
  </code></pre>
  
  <p>Why doesn't doctest test <code>A.method</code> ?</p>