def _check_is_in_path(self, directory, path_env):
        """ Check that a given directory is in the given string

        """
        paths = path_env.split(os.path.pathsep)
        mess  = "Could not find %s in %s" % (directory, paths)
        self.assertTrue(directory in paths, mess)
dataset/ETHPy150Open aldebaran/qibuild/python/qisys/test/test_envsetter.py/EnvSetterTestCase._check_is_in_path/original