Test cleanup as per code review
@@ -13,13 +13,12 @@ class TestCustomScimetaEndpoint(HSRESTTestCase):
self.title = 'My Test resource'
res = resource.create_resource(self.rtype,
self.user,
- self.title,
- unpack_file=False)
+ self.title)
self.pid = res.short_id
self.resources_to_delete.append(self.pid)
- def test_set_metadata(self):
+ def test_set_custom_metadata(self):
set_metadata = "/hsapi/resource/%s/scimeta/custom/" % self.pid
response = self.client.post(set_metadata, {
"resource-mode": "edit",
@@ -28,7 +27,7 @@ class TestCustomScimetaEndpoint(HSRESTTestCase):
self.assertEqual(response.status_code, status.HTTP_200_OK)
- def test_set_metadata_no_resource_mode(self):
+ def test_set_custom_metadata_no_resource_mode(self):
set_metadata = "/hsapi/resource/%s/scimeta/custom/" % self.pid
response = self.client.post(set_metadata, {
"foo": "bar"
