title: Python unittest does not run tests
body: <p>I made a small project called demo, with a single test in it</p>
  
  <pre><code>import unittest
  
  
  class Test(unittest.TestCase):
  
  
      def testName1(self):
          self.assertEqual(5+9, 14)
  
  
  if __name__ == "__main__":
      #import sys;sys.argv = ['', 'Test.testName']
      unittest.main()
  </code></pre>
  
  <p>However, from command line</p>
  
  <pre><code>ThinkPad-T520:~/workspacep/demo$ python -m unittest
  
  ----------------------------------------------------------------------
  Ran 0 tests in 0.000s
  
  OK
  </code></pre>
  
  <p>Why doesn't this work? In general, how can I run all unit tests from command line with a single line?</p>
  
  <p>The structure of the directory is</p>
  
  <pre><code>demo
      tests
            demo_test1.py  __init__.py
  </code></pre>