spacepaste

  1.  
  2. def test_handle_missing_config_directory(self):
  3. """Create the config directory if it does not exist."""
  4. self.filesystem.remove_empty_directory(self.locator.root)
  5. self.run_cli(["-l", "foo", "-i", "bar", "--persist", "--root", "virtualenvs/subdir"])
  6. # venvs/common.py", line 150, in for_name
  7. # child = self.root.descendant(name.lower().replace("-", "_"))
  8. # AttributeError: 'RelativePath' object has no attribute 'descendant'
  9. contents = _load_config(
  10. filesystem=self.filesystem,
  11. locator=self.locator,
  12. )
  13. self.assertEqual(
  14. contents,
  15. {'virtualenv': {"bar": {"install": ["bar"], "link": ["foo"]}}}
  16. )
  17.