def import_steps(self, caseversion, step_data):
        """
        Add the steps to this case version.

        Keyword arguments:

        * caseversion -- the CaseVersion object that step_data applies to
        * step_data -- a dictionary containing the steps for the case

        Instruction is a required field for a step, but expected is optional.

        """

        for step_num, new_step in enumerate(step_data):
            try:
                casestep = CaseStep.objects.create(
                    caseversion=caseversion,
                    number=step_num + 1,
                    instruction=new_step["instruction"],
                    expected=new_step.get("expected", ""),
                    )
            except __HOLE__:
                raise ValueError(ImportResult.SKIP_STEP_NO_INSTRUCTION)
dataset/ETHPy150Open mozilla/moztrap/moztrap/model/library/importer.py/CaseImporter.import_steps