Simplify tests teatDown method.

This commit is contained in:
Roberto Rosario
2015-11-01 02:57:55 -04:00
parent 391298eea1
commit cbc1f12bf6
17 changed files with 0 additions and 40 deletions
@@ -30,9 +30,6 @@ class SearchAPITestCase(APITestCase):
self.client.force_authenticate(user=self.admin_user)
def tearDown(self):
self.admin_user.delete()
def test_search(self):
document_type = DocumentType.objects.create(
label=TEST_DOCUMENT_TYPE
@@ -28,7 +28,6 @@ class DocumentSearchTestCase(TestCase):
)
def tearDown(self):
self.document.delete()
self.document_type.delete()
def test_simple_search_after_related_name_change(self):
@@ -50,8 +50,6 @@ class Issue46TestCase(TestCase):
for document_type in DocumentType.objects.all():
document_type.delete()
self.admin_user.delete()
def test_advanced_search_past_first_page(self):
# Make sure all documents are returned by the search
model_list, result_set, elapsed_time = document_search.search(