title: python nose from a script, gathers test classes from files and then runs tests
body: <p>How would I use nose from a python script to</p>
  
  <ol>
  <li>gather python files from a directory</li>
  <li>foreach file
  <ol>
  <li>run all test classes found using passed parameters</li>
  </ol></li>
  </ol>
  
  <p>Here's an example, given files</p>
  
  <pre><code>/run.py
  /tests/TestClassA.py
  </code></pre>
  
  <p>and within <strong>TestClassA.py</strong> is the code</p>
  
  <pre><code>  class A():
       __init__(self, b):
            self._b = b
       test_run():
            print("%s",self._b)
  </code></pre>
  
  <p><br /><br />
  <strong><em>To restate the need:</em></strong><br />
  I want to call nose from run.py.  I want nose (or some part of nose) to </p>
  
  <ol>
  <li>find class <strong>A</strong> in file TestClassA.py</li>
  <li>create an instance of <strong>A</strong>, named <strong>a</strong>, passing the string <strong>"foo"</strong> to <strong>A.__ init __</strong> function</li>
  <li>call <strong>a.test_run()</strong></li>
  </ol>
  
  <p>What is the python nose code within <strong>run.py</strong> for this request? <br />
  If not python nose , would python unittests do any better?</p>