'Verify base formset honors DELETE field'

def test_all_delete(self):

    self.test_init_database()
    data = dict(self.data)
    data[u'form-INITIAL_FORMS'] = 4
    data.update(dict((((u'form-%d-id' % i), user.pk) for (i, user) in enumerate(User.objects.all()))))
    data.update(self.delete_all_ids)
    formset = self.NormalFormset(data, queryset=User.objects.all())
    self.assertTrue(formset.is_valid())
    self.assertEqual(len(formset.save()), 0)
    self.assertEqual(len(User.objects.all()), 0)
