title: Unit test is only running one test (python)
body: <p>I am trying to implement some unit-testing, and I have various different input files I want to call into my program to test. The function I want to test is located in <code>my_file</code>,
  for a function called <code>test_func</code>.</p>
  <p>Here is my code:</p>
  <pre class="lang-py prettyprint-override"><code>import unittest
  import make_html
      
    
  class TestBuild(unittest.TestCase):
          def test_test_func(self):
              # Case 1: blank input file -&gt; Return 'Blank'
              expected_output = 'Blank'
              self.assertEqual(make_html.test_func('blank'),expected_output)
  
              # Case 2: Non-numeric -&gt; Should raise ValueError
              with self.assertRaises(ValueError):
                  make_html.test_func('non_numeric')
                                    
  
  if __name__ == '__main__': # run the main file within unit test package
      unittest.main()
  
  </code></pre>
  <p>When I try to run this unit test, it only ever runs 1 of the tests. If I run them separately, they return 'OK'. What am I doing wrong? How do I get it so both tests are run. Furthermore, I want to add even more cases. I am not really sure what it going in here, regarding the syntax surrounding <code>class</code>, <code>self</code>, <code>__name__</code> and <code>__main__</code>.</p>
  <p>Update: I tried splitting it into two tests, but I am getting the same result:</p>
  <pre class="lang-py prettyprint-override"><code>import unittest
  import make_html
      
    
  class TestBuild(unittest.TestCase):
          def test_test_func(self):
              # Case 1: blank input file -&gt; Return 'Blank'
              expected_output = 'Blank'
              self.assertEqual(make_html.test_func('blank'),expected_output)
  
          def test_test_func(self):
              # Case 2: Non-numeric -&gt; Should raise ValueError
              with self.assertRaises(ValueError):
                  make_html.test_func('non_numeric')
                                    
  
  if __name__ == '__main__': # run the main file within unit test package
      unittest.main()
  
  </code></pre>
  <p>My output is still just:</p>
  <pre><code>----------------------------------------------------------------------
  Ran 1 test in 0.001s
  </code></pre>