'Tests the default delete action defined as a ModelAdmin method'

def test_model_admin_default_delete_action(self):

    action_data = {ACTION_CHECKBOX_NAME: [1, 2], 'action': 'delete_selected', 'index': 0}
    delete_confirmation_data = {ACTION_CHECKBOX_NAME: [1, 2], 'action': 'delete_selected', '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.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)
