title: How can I generate html test report using python in my code
body: <pre><code>from selenium import selenium
  import unittest, time, re
  import HTMLTestRunner
  
  class Untitled(unittest.TestCase):
      def setUp(self):
          self.verificationErrors = []
          self.selenium = selenium("localhost",4444,"*iexplore","http://google.com.ua/")
          self.selenium.start()
  
      def test_untitled(self):
          sel = self.selenium
          sel.open("/")
          sel.type("q", "home")
          sel.click("btnG")
          sel.click("link=Welcome to Home.com")
          sel.wait_for_page_to_load("30000") 
          self.failUnless(sel.is_text_present("Results * for selenium rc"))
  
      def tearDown(self):
          time.sleep(25)
   self.selenium.stop()
          self.assertEqual([], self.verificationErrors)
  
  if __name__ == "__main__":
      unittest.main()
  </code></pre>