title: running specific test case with python unittest in django
body: <p>I have a set of unit tests that I can successfully run with: <code>./runtests.py wagtail.wagtailcore.tests</code></p>
  
  <p>I can also run:</p>
  
  <pre><code>./runtests.py wagtail.wagtailcore.tests.test_page_privacy
  </code></pre>
  
  <p>But if I want to execute just one of them, I get an error that <code>'module' object has no attribute [test_case_name]</code></p>
  
  <p>My class would be something like:</p>
  
  <pre><code>class TestPagePrivacy(TestCase):
    def test_anonymous_user_must_authenticate(self):
  </code></pre>
  
  <p>so I would think you could just say: <code>./runtests.py wagtail.wagtailcore.tests.test_page_privacy.test_anonymous_user_must_authenticate</code></p>
  
  <p>Why doesn't this work?</p>
  
  <p>From the django docs:</p>
  
  <p><a href="https://docs.djangoproject.com/en/1.11/topics/testing/overview/#running-tests" rel="nofollow noreferrer">https://docs.djangoproject.com/en/1.11/topics/testing/overview/#running-tests</a></p>
  
  <pre><code># Run just one test method
  $ ./manage.py test animals.tests.AnimalTestCase.test_animals_can_speak
  </code></pre>