def _add_uuid_to_submission_xml(self, path, xform):
        tmp_file = NamedTemporaryFile(delete=False)
        split_xml = None

        with open(path) as _file:
            split_xml = re.split(r'(<transport>)', _file.read())

        split_xml[1:1] = [
            xform.uuid % '<formhub><uuid>%s</uuid></formhub>'
        ]
        tmp_file.write(''.join(split_xml))
        path = tmp_file.name
        tmp_file.close()

        return path
dataset/ETHPy150Open kobotoolbox/kobocat/onadata/apps/api/tests/viewsets/test_abstract_viewset.py/TestAbstractViewSet._add_uuid_to_submission_xml/swapped operands of `%`