def test_handle_missing_config_directory(self): """Create the config directory if it does not exist.""" self.filesystem.remove_empty_directory(self.locator.root) self.run_cli(["-l", "foo", "-i", "bar", "--persist", "--root", "virtualenvs/subdir"]) # venvs/common.py", line 150, in for_name # child = self.root.descendant(name.lower().replace("-", "_")) # AttributeError: 'RelativePath' object has no attribute 'descendant' contents = _load_config( filesystem=self.filesystem, locator=self.locator, ) self.assertEqual( contents, {'virtualenv': {"bar": {"install": ["bar"], "link": ["foo"]}}} )