title: Django test - models.DoesNotExist: matching query does not exist
body: <p>I have two test files, test1.py and test2.py. Individually they run fine, but when I try to run them using 'django manage.py test' I get the following error:</p>
  
  <pre><code>post.models.DoesNotExist: Post matching query does not exist.
  </code></pre>
  
  <p>One more thing I notice is that, whichever file runs first will work well while the other throws this error (tested this by renaming files). I am using django.test.TestCase. This is the relevant code - </p>
  
  <p>test1.py:</p>
  
  <pre><code>def setUpTestData(cls):
      Post.objects.create(...)
      Post.objects.get(id=1) #Works fine since this file runs first
  </code></pre>
  
  <p>test2.py:</p>
  
  <pre><code>def setUpTestData(cls):
      Post.objects.create(...)
      Post.objects.get(id=1) #Throws above error
  </code></pre>
  
  <p>I am new to testing in django so I think I'm missing something basic here.</p>