title: Nose does not run doctests from imported modules
body: <p>I have a project with a structure like that :</p>
  
  <pre><code>my_project_with_tests/
    project/
      __init__.py
      module.py
    test/
      test.py
  </code></pre>
  
  <p><code>module.py</code> contains two <code>doctest</code>'ed functions:</p>
  
  <pre><code>def foo():
    """
    &gt;&gt;&gt; foo()
    1
    """
    return 1
  
  def test_foo_doctest():
      """
      &gt;&gt;&gt; module.foo()
      1
      """
      pass
  
  
  def bar():
    """
    &gt;&gt;&gt; bar()
    """
    return 1
  </code></pre>
  
  <p><code>test.py</code> contains the necessary bits to run tests:</p>
  
  <pre><code>import sys
  import os.path
  sys.path = [os.path.abspath("../project")] + sys.path
  
  
  import module
  
  
  def test_foo():
      assert module.foo() == 1
  
  
  def test_bar():
      assert module.bar() == 1
  </code></pre>
  
  <p>I'm currently running my tests using <code>nose</code> with</p>
  
  <pre><code>nosetests                   \
      --all-modules           \
      --traverse-namespace    \
      --with-coverage         \
      --cover-tests           \
      --with-doctest          \
      --where test/
  </code></pre>
  
  <p>However, it does not run <code>doctests</code> from my <code>project</code> sources directory (but <code>doctests</code> from the test directory are ok, since <code>test_foo_doctest</code> passes).</p>
  
  <ol>
  <li>Is this the good way to call <code>nose</code> ?</li>
  <li>How can I run <code>doctests</code> from the <code>project</code> directory
  <ul>
  <li>using <code>nose</code></li>
  <li>without changing the directory structure</li>
  <li>without running tests in the <code>project</code> directory</li>
  </ul></li>
  </ol>