def test_get_environment_paths(self): with environment_as(PATH="foo/bar:baz:/qux/quux"): paths = PythonSetup.get_environment_paths() self.assertListEqual(["foo/bar", "baz", "/qux/quux"], paths)
def test_get_environment_paths() -> None: paths = PythonSetup.get_environment_paths( Environment({"PATH": "foo/bar:baz:/qux/quux"})) assert ["foo/bar", "baz", "/qux/quux"] == paths
def test_get_environment_paths(self): with environment_as(PATH="foo/bar:baz:/qux/quux"): paths = PythonSetup.get_environment_paths() assert ["foo/bar", "baz", "/qux/quux"] == paths