update zip download folder unit test
@@ -59,6 +59,10 @@ class TestPublicZipEndpoint(HSRESTTestCase):
response = self.client.get(zip_download_url, format="json")
# becasue of the redirect to the internal url, the status code is 301
self.assertEqual(response.status_code, status.HTTP_301_MOVED_PERMANENTLY)
+ zip_download_url = "/django_irods/rest_download/zips/{pid}/data/contents/foo".format(
+ pid=self.pid)
+ response = self.client.get(zip_download_url, format="json")
+ self.assertEqual(response.status_code, status.HTTP_200_OK)
response_json = json.loads(response.content)
task_id = response_json["task_id"]
download_path = response_json["download_path"]
