def test_get_install_directory_set(self, mocker):
        """Test to get specified install directory."""
        mocked_realpath = mocker.patch.object(Path, "realpath", autospec=True)
        mocked_realpath.side_effect = lambda p: p

        dependency_list = DependencyList(Path("lib"))

        assert dependency_list.get_install_path() == Path("lib")
    def test_get_install_directory_default(self, mocker):
        """Test to get default install directory."""
        mocked_realpath = mocker.patch.object(Path, "realpath", autospec=True)
        mocked_realpath.side_effect = lambda p: p

        dependency_list = DependencyList()

        assert dependency_list.get_install_path() == CACHE_INSTALL