mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user