model.exportPart(partSet, filename, [featureToExport.result()])
model.end()
assert os.path.exists(filename), "ERROR: Cannot export feature {}".format(featureToExport.name())
model.exportPart(partSet, filename, [featureToExport.result()])
model.end()
assert os.path.exists(filename), "ERROR: Cannot export feature {}".format(featureToExport.name())