def start(self, environment=None, user=None):
        """Mark this result started."""
        # if we are restarted a case that was skipped, we want to restart
        # for ALL envs, not just this one.
        envs = [environment]
        try:
            latest = self.results.get(
                is_latest=True,
                tester=user,
                environment=environment,
                )
            if latest.status == Result.STATUS.skipped:
                envs = self.environments.all()
        except __HOLE__:
            pass

        for env in envs:
            Result.objects.create(
                runcaseversion=self,
                tester=user,
                environment=env,
                status=Result.STATUS.started,
                user=user
                )
dataset/ETHPy150Open mozilla/moztrap/moztrap/model/execution/models.py/RunCaseVersion.start