def test_get_entry_when_does_not_exist_raises_error(
            self, mock_config_parser):
        name = "test_name"

        def get_item_side_effect(item):
            if item == name:
                raise KeyError()

        mock_config_parser.__getitem__.side_effect = get_item_side_effect
        venvs_parser = VenvsConfigParser(mock_config_parser)
        with pytest.raises(VenvDirBaseError) as err:
            venvs_parser.get_entry(name)

        assert err
    def test_get_entry_returns_expected_entry(self, mock_config_parser):
        name = "test_name"
        mock_section = MockSection(name, {"path": "path/to/venv"})

        def get_item_side_effect(item):
            if item == name:
                return mock_section

        mock_config_parser.__getitem__.side_effect = get_item_side_effect
        venvs_parser = VenvsConfigParser(mock_config_parser)
        assert venvs_parser.get_entry(name) == mock_section.values_dict