Fixed #23995 -- Removed unnecessary calls to self.client.logout() in tests.

This commit is contained in:
Diego Guimarães 2014-12-16 09:10:10 -05:00 committed by Tim Graham
parent 2cb9d984cf
commit ca013e652f
5 changed files with 0 additions and 124 deletions

View file

@ -41,9 +41,6 @@ class GenericAdminViewTest(TestCase):
m.save()
self.png_media_pk = m.pk
def tearDown(self):
self.client.logout()
def test_basic_add_GET(self):
"""
A smoke test to ensure GET on the add_view works.
@ -137,9 +134,6 @@ class GenericInlineAdminParametersTest(TestCase):
self.client.login(username='super', password='secret')
self.factory = RequestFactory()
def tearDown(self):
self.client.logout()
def _create_object(self, model):
"""
Create a model with an attached Media object via GFK. We can't
@ -286,9 +280,6 @@ class GenericInlineAdminWithUniqueTogetherTest(TestCase):
def setUp(self):
self.client.login(username='super', password='secret')
def tearDown(self):
self.client.logout()
def test_add(self):
category_id = Category.objects.create(name='male').pk
post_data = {