def METHOD_NAME(self):
    # here we will set the tif file to GeoRaster file type with an invalid file path
    # which should fail
    # resource should have no file at this point
    self.assertEqual(self.resource.files.count(), 0)
    # add the tif file to the composite resource
    tif_file_obj = open(self.raster_file_path, "rb")
    uploaded_file = UploadedFile(file=tif_file_obj,
                                 name=os.path.basename(tif_file_obj.name))
    resource_file_add_process(resource=self.resource, files=(uploaded_file,), user=self.user,
                              auto_aggregate=False)
    # resource should have one file at this point
    self.assertEqual(self.resource.files.count(), 1)
    res_file = self.resource.files.all().first()
    self.assertEqual(res_file.file_name, self.raster_file_name)
    # test the set file type endpoint using a wrong file path
    url_template = "/hsapi/resource/{res_id}/functions/set-file-type/{file_path}/{file_type}/"
    file_path = os.path.join("no-such-folder", self.raster_file_name)
    set_file_type_url = url_template.format(res_id=self.resource.short_id,
                                            file_path=file_path,
                                            file_type="GeoRaster")
    response = self.client.post(set_file_type_url, {}, format='json')
    self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)