def link_scenes(self, test_name, config):
        """Make symbolic links to the listed scenes."""

        scene_list = json.loads(config.get(test_name, 'scenes'))
        for scene_path in scene_list:

            if not os.path.exists(scene_path):
                raise AssertionError(scene_path % 'Scene %s does not exist.')

            scene_path = os.path.abspath(scene_path)
            scene_name = os.path.basename(re.sub(r'[/\\]$', '', scene_path))
            link_path = os.path.join(self.scenes_dir, scene_name)

            try:
                os.symlink(scene_path, link_path)
            except IOError as e:
                raise AssertionError('Unable to make link to scene %s: %s' %
                                     (scene_path, e.strerror))
        return scene_list
dataset/ETHPy150Open GeoscienceAustralia/agdc/tests/systest.py/Systest.link_scenes/swapped operands of `%`