def METHOD_NAME(self):
    count = MetaData.objects.filter(
        xform=self.xform, data_type='media').count()
    self._add_metadata()
    self.assertEqual(MetaData.objects.filter(
        xform=self.xform, data_type='media').count(), count + 1)
    response = self.client.get(self.doc_url + '?del=true')
    self.assertEqual(MetaData.objects.filter(
        xform=self.xform, data_type='media').count(), count)
    self.assertEqual(response.status_code, 302)
    self._add_metadata()
    response = self.anon.get(self.doc_url + '?del=true')
    self.assertEqual(MetaData.objects.filter(
        xform=self.xform, data_type='media').count(), count + 1)
    self.assertEqual(response.status_code, 403)