def getPathPrefix(self):
        # If we don't have a host name, assume it's just the first part of the
        # metric path
        if self.host is None:
            return self.path.split('.')[0]

        offset = self.path.index(self.host) - 1
        return self.path[0:offset]
Add pytest-bdd options.
dataset/ETHPy150Open python-diamond/Diamond/src/diamond/metric.py/Metric.getPathPrefix--crossover with--dataset/ETHPy150Open pytest-dev/pytest-bdd/pytest_bdd/generation.py/add_options