title: can't instantiate child classes of unittest.Testcase in python
body: <p>i'm iterating over a text file.</p>
  
  <p>each line in the file text file is the name of a test.</p>
  
  <p>i am trying to instantiate the test class but i keep getting this error:</p>
  
  <pre><code>ValueError: no such test method in &lt;class 'login_to_blog'&gt;: runTest
  </code></pre>
  
  <p>the code where i'm doing that is here:</p>
  
  <pre><code>    test_name = line.replace("\n", "") #name of test file, class, and method _must_ be shared.
      module = __import__(test_name)
      test_class = getattr(module, test_name)
      suite.addTest(test_class())
  </code></pre>
  
  <p>here is login_to_blog:</p>
  
  <pre><code>from selenium import selenium
  import unittest, time, re
  
  class login_to_blog(unittest.TestCase):
      def setUp(self):
          self.verificationErrors = []
          self.selenium = selenium("localhost", 4444, "*chrome", "http://blog/")
          self.selenium.start()
  
      def test_login_to_blog(self):
          sel = self.selenium
          sel.open("/")
          sel.type("signin_username", "jim")
          sel.type("signin_password", "jones")
          sel.click("//input[@value='Signin']")
          sel.wait_for_page_to_load("30000")
          try: self.failUnless(sel.is_text_present("your blog posts"))
          except AssertionError, e: self.verificationErrors.append(str(e))
  
      def tearDown(self):
          self.selenium.stop()
          self.assertEqual([], self.verificationErrors)
  
  if __name__ == "__main__":
      unittest.main()
  </code></pre>
  
  <p>it's important to note that these tests run by them selves successfully via command line.</p>
  
  <p>any idea how i can instantiate them and run them manually from within python code?</p>