@staticmethod
    def select_scenario_line_for(line, scenario_lines):
        if not scenario_lines:
            return 0    # -- Select all scenarios.
        pos = bisect(scenario_lines, line) - 1
        if pos < 0:
            pos = 0
        return scenario_lines[pos]
Select scenario line for any given line.
dataset/ETHPy150Open behave/behave/behave/runner_util.py/FeatureScenarioLocationCollector.select_scenario_line_for