def METHOD_NAME(self):
    """Test deletion of a service."""
    self._add_rest_service(self.service_url, self.service_name)
    count = RestService.objects.all().count()
    service = RestService.objects.reverse()[0]
    post_data = {"service-id": service.pk}
    del_service_url = reverse(
        delete_service,
        kwargs={"username": self.user.username, "id_string": self.xform.id_string},
    )
    response = self.client.post(del_service_url, post_data)
    self.assertEqual(response.status_code, 200)
    self.assertEqual(RestService.objects.all().count(), count - 1)