title: How to fix python build error "ValueError: no such test method in <class '__main__."
body: <p>My python script is listed:</p>
  
  <p>==========================================</p>
  
  <pre><code>class ExampleTestCase(unittest.TestCase):
      capabilities = None
  
  def setUp(self):
      self.driver = webdriver.Remote(desired_capabilities={ "browserName": broswer,      "platform": platform, "node": node })
  
  def test_example(self):
      self.driver.get("www.360logica.com")
      self.assertEqual(self.driver.title, "360logica")
  
  def tearDown(self):
      self.driver.quit()
  
  if __name__ == "__main__":
      #unittest.main()
      args = sys.argv
      port = args[1]
      platform = args[2]
      broswer = args[3]
      suite = unittest.TestSuite()
      suite.addTest(ExampleTestCase("test_example"))
      runner = XMLTestRunner(file('results_ExampleTestCase_%s.xml' % (broswer), "w"))
      runner.run(suite)
  </code></pre>
  
  <p>==============================================</p>
  
  <p>The run command as:</p>
  
  <pre><code>$ ./python.exe Grid_1.py 5555 WINDOW firefox
  </code></pre>
  
  <p>==============================================</p>
  
  <p>The build error log is:</p>
  
  <pre><code>$ ./python.exe Grid_1.py 5555 WINDOW firefox
  Traceback (most recent call last):
        File "Grid_1.py", line 31, in &lt;module&gt;
          suite.addTest(ExampleTestCase("test_example"))
        File "C:\Python27\Lib\unittest\case.py", line 191, in __init__
          (self.__class__, methodName))
  ValueError: no such test method in &lt;class '__main__.ExampleTestCase'&gt;: test_example
  </code></pre>
  
  <p>===================================================</p>
  
  <p>Please help me. I am so headache with that build error and don't know how to fix it.</p>