def test_ln_missing_parent(self, mock_call): """Verify the commands to create symbolic links (missing parent).""" shell.ln('mock/target', 'mock/source') assert_calls(mock_call, ["mkdir -p mock", "ln -s mock/target mock/source"])
def test_ln(self, mock_call): """Verify the commands to create symbolic links.""" shell.ln('mock/target', 'mock/source') assert_calls(mock_call, ["ln -s mock/target mock/source"])