summaryrefslogtreecommitdiff
path: root/tests/admin_inlines
diff options
context:
space:
mode:
authorDiego GuimarĂ£es <diegobr.sistemas@gmail.com>2014-12-16 09:10:10 -0500
committerTim Graham <timograham@gmail.com>2014-12-16 09:12:46 -0500
commitca013e652f912e279c128d4d2631eaa3b02e4db7 (patch)
tree297446cf4fc64e27397cab4b6016e18b52b84369 /tests/admin_inlines
parent2cb9d984cf7a0965ca6b1322ab836d56278f8749 (diff)
Fixed #23995 -- Removed unnecessary calls to self.client.logout() in tests.
Diffstat (limited to 'tests/admin_inlines')
-rw-r--r--tests/admin_inlines/tests.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/admin_inlines/tests.py b/tests/admin_inlines/tests.py
index 7d8be94803..ed931a0cc1 100644
--- a/tests/admin_inlines/tests.py
+++ b/tests/admin_inlines/tests.py
@@ -36,9 +36,6 @@ class TestInline(TestCase):
self.assertEqual(result, True)
self.factory = RequestFactory()
- def tearDown(self):
- self.client.logout()
-
def test_can_delete(self):
"""
can_delete should be passed to inlineformset factory.
@@ -359,9 +356,6 @@ class TestInlineMedia(TestCase):
result = self.client.login(username='super', password='secret')
self.assertEqual(result, True)
- def tearDown(self):
- self.client.logout()
-
def test_inline_media_only_base(self):
holder = Holder(dummy=13)
holder.save()
@@ -438,9 +432,6 @@ class TestInlineProtectedOnDelete(TestCase):
result = self.client.login(username='super', password='secret')
self.assertEqual(result, True)
- def tearDown(self):
- self.client.logout()
-
def test_deleting_inline_with_protected_delete_does_not_validate(self):
lotr = Novel.objects.create(name='Lord of the rings')
chapter = Chapter.objects.create(novel=lotr, name='Many Meetings')
@@ -514,9 +505,6 @@ class TestInlinePermissions(TestCase):
self.client.login(username='admin', password='secret'),
True)
- def tearDown(self):
- self.client.logout()
-
def test_inline_add_m2m_noperm(self):
response = self.client.get('/admin/admin_inlines/author/add/')
# No change permission on books, so no inline