def get_pristine_path(pristine_path_name): """Returns the pristine path""" return os.path.join(Configuration.get_pristine_path(), pristine_path_name)
def test_get_pristine_path_default(): assert Configuration.get_pristine_path() == "/tmp/nestor/pristine"
def test_get_pristine_path_default(self): self.assertEqual(Configuration.get_pristine_path(), "/tmp/nestor/pristine")
def test_get_pristine_path_configured(monkeypatch): monkeypatch.setenv("NESTOR_PRISTINE_PATH", "/a-custom-pristine-path") assert Configuration.get_pristine_path() == "/a-custom-pristine-path"
def test_get_pristine_path_configured(self): self.assertEqual(Configuration.get_pristine_path(), "/a-custom-pristine-path")