title: Django LiveServerTestCase: User created in in setUpClass method not available in test_method?
body: <p>I am using Django 1.4's LiveServerTestCase for Selenium testing and am having trouble with the <code>setUpClass</code> class method. As far as I understand <code>MembershipTests.setUpClass</code> is run once before the unit tests are run. </p>
  
  <p>I've put code to add a user to the database in <code>MembershipTests.setUpClass</code> but when I run the <code>MembershipTests.test_signup</code> test no user has been added to the test database. <strong><em>What am I doing incorrectly?</em></strong> I expect the user I created in <code>setUpClass</code> would be available across all unit tests.</p>
  
  <p>If I put the user creation code in <code>MembershipTests.setUp</code> and run <code>MembershipTests.test_signup</code> I can see the user, but don't want this run before every unit test as <code>setUp</code> is. As you can see, I use a custom LiveServerTestCase class to add basic functionality across all of my tests (<code>test_utils.CustomLiveTestCase</code>). I suspect this has something to do with my issue.</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>test_utils.py</strong>:</p>
  
  <pre class="lang-py prettyprint-override"><code>from selenium.webdriver.firefox.webdriver import WebDriver
  from django.test import LiveServerTestCase
  
  class CustomLiveTestCase(LiveServerTestCase):
  
      @classmethod
      def setUpClass(cls):
          cls.wd = WebDriver()
          super(CustomLiveTestCase, cls).setUpClass()
  
      @classmethod
      def tearDownClass(cls):
          cls.wd.quit()
          super(CustomLiveTestCase, cls).tearDownClass()
  </code></pre>
  
  <p><strong>tests.py</strong>:</p>
  
  <pre class="lang-py prettyprint-override"><code>from django.contrib.auth.models import User
  from django.test.utils import override_settings
  from test_utils import CustomLiveTestCase 
  from test_constants import *
  
  @override_settings(STRIPE_SECRET_KEY='xxx', STRIPE_PUBLISHABLE_KEY='xxx')
  class MembershipTests(CustomLiveTestCase):
  
      fixtures = [
          'account_extras/fixtures/test_socialapp_data.json',
          'membership/fixtures/basic/plan.json',
      ]
  
      def setUp(self):
          pass
  
      @classmethod
      def setUpClass(cls):
          super(MembershipTests, cls).setUpClass()
          user = User.objects.create_user(
              TEST_USER_USERNAME,
              TEST_USER_EMAIL,
              TEST_USER_PASSWORD
          )
  
      def test_signup(self):
          print "users: ", User.objects.all()
  </code></pre>