diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py
index 02ee00b..ab1fd01 100644
a
|
b
|
class AdminViewDeletedObjectsTest(TestCase):
|
2062 | 2062 | '<li>Answer: <a href="%s">Yes.</a></li>' % reverse('admin:admin_views_answer_change', args=(a2.pk,)) |
2063 | 2063 | ) |
2064 | 2064 | |
| 2065 | def test_protected_bulk_delete(self): |
| 2066 | q = Question.objects.create(question="Why?") |
| 2067 | Answer.objects.create(question=q, answer="Because.") |
| 2068 | |
| 2069 | response = self.client.post(reverse('admin:admin_views_question_changelist'), { |
| 2070 | ACTION_CHECKBOX_NAME: [q.pk], |
| 2071 | 'action': 'delete_selected', |
| 2072 | 'post': 'yes', |
| 2073 | }) |
| 2074 | |
2065 | 2075 | def test_not_registered(self): |
2066 | 2076 | should_contain = """<li>Secret hideout: underground bunker""" |
2067 | 2077 | response = self.client.get(reverse('admin:admin_views_villain_delete', args=(self.v1.pk,))) |