Skip to content

Commit 2550c21

Browse files
committed
Remove unnecessary fallback caused by incorrectly capitalised verbose_name
1 parent 43e4c0a commit 2550c21

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/tests.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,10 +470,7 @@ def test_draft_page_content_is_not_activated_on_published_pages_when_creating_ex
470470
def test_experiment_delete(self):
471471
response = self.client.get(f'/{self.admin_home}/experiments/experiment/delete/{self.experiment.pk}/')
472472
self.assertEqual(response.status_code, 200)
473-
try:
474-
self.assertContains(response, "Are you sure you want to delete this Experiment?")
475-
except AssertionError: # fallback for Django <2.0
476-
self.assertContains(response, "Are you sure you want to delete this experiment?")
473+
self.assertContains(response, "Are you sure you want to delete this experiment?")
477474

478475
response = self.client.post(f'/{self.admin_home}/experiments/experiment/delete/{self.experiment.pk}/')
479476
self.assertRedirects(response, f'/{self.admin_home}/experiments/experiment/')

0 commit comments

Comments
 (0)