title: Run unittests from a different file
body: <p>I have a file <code>TestProtocol.py</code> that has unittests. I can run that script and get test results for my 30 tests as expected. Now I want to run those tests from another file <code>tester.py</code> that is located in the same directory. Inside <code>tester.py</code> I tried <code>import TestProtocol</code>, but it runs 0 tests.</p>
  
  <p>Then I found the documentation which says I should do something like this:</p>
  
  <pre><code>suite = unittest.TestLoader().discover(".", pattern = "*")
  unittest.run(suite)
  </code></pre>
  
  <p>This should go through all files in the current directory <code>.</code> that match the pattern <code>*</code>, so all tests in all files. Unfortunately it again runs 0 tests.</p>
  
  <p>There is a <a href="https://stackoverflow.com/questions/3156782/how-to-add-dozen-of-test-cases-to-a-test-suite-automatically-in-python">related QA</a> that suggests to do</p>
  
  <pre><code>import TestProtocol
  suite = unittest.findTestCases(TestProtocol)
  unittest.run(suite)
  </code></pre>
  
  <p>but that also does not find any tests.</p>
  
  <p>How do I import and run my tests?</p>