mirror of
https://github.com/django/django.git
synced 2025-11-01 20:31:40 +00:00
Poured a little more perfectionism into the delete-confirmation templates.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15250 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
93a4d46184
commit
53dac996ef
5 changed files with 26 additions and 9 deletions
|
|
@ -1632,7 +1632,7 @@ class AdminActionsTest(TestCase):
|
|||
'post': 'yes',
|
||||
}
|
||||
confirmation = self.client.post('/test_admin/admin/admin_views/subscriber/', action_data)
|
||||
self.assertContains(confirmation, "Are you sure you want to delete the selected subscriber objects")
|
||||
self.assertContains(confirmation, "Are you sure you want to delete the selected subscribers")
|
||||
self.assertTrue(confirmation.content.count(ACTION_CHECKBOX_NAME) == 2)
|
||||
response = self.client.post('/test_admin/admin/admin_views/subscriber/', delete_confirmation_data)
|
||||
self.assertEqual(Subscriber.objects.count(), 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue