title: Django LiveServerTestCase fails to load a page when I run multiple tests
body: <p>I am trying to run multiple tests within one Django LiveServerTestCase. When I run any single test (with others commented) everything works as expected. But when I run test case with two tests the first one works fine but the second one loads page with "internal server error" message.</p>
  
  <p>Code: </p>
  
  <pre><code>from django.test import LiveServerTestCase
  from selenium.webdriver.firefox.webdriver import WebDriver
  
  
  class MyLiveServerTestCase(LiveServerTestCase):    
      """
      BaseCleass for my selenium test cases
      """
      @classmethod
      def setUpClass(cls):
          cls.driver = WebDriver()
          cls.url = cls.live_server_url    
  
          super(MyLiveServerTestCase, cls).setUpClass()
  
      @classmethod
      def tearDownClass(cls):
          cls.driver.quit()
          super(MyLiveServerTestCase, cls).tearDownClass()
  
  class AdminEditFormTest(MyLiveServerTestCase):
      """
      Some test case
      """
  
      def test_valid_data(self):
          """
          test when user enters correct data
          """
          self.driver.get(self.url)
          # ...
  
      def test_invalid_data(self):
          """ test when user enters INcorrect data """
          self.driver.get(self.url)
          # ...
  </code></pre>
  
  <p>If I use <code>close()</code> instead of <code>quit()</code> it fails with "error 98: address already in use" similar to <a href="https://stackoverflow.com/questions/20619846/djangos-liveservertestcase-always-fails-due-to-conflicting-address-despite-a">this</a> case except I have an error only when I have multiple tests in one LiveServerTestCase class or multiple test cases in one .py file.</p>
  
  <p>How do I make LiveServerTestCase free port on tearDown (if it is the core problem)?</p>
  
  <p>Is there any workaround? All I want are functional selenium tests running equally on local and remote servers.</p>
  
  <p>I am using Django 1.6.7, Firefox 37.0, Selenium 2.45.0</p>
  
  <p><strong>upd</strong></p>
  
  <p>Using methods instead of classmethods leads to the same issue.</p>
  
  <pre><code>def setUp(self):
      self.driver = WebDriver()
      self.url = self.live_server_url    
  
  def tearDown(self):
      self.driver.quit()
  </code></pre>