Exemplo n.º 1
0
 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"])
Exemplo n.º 2
0
 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"])
Exemplo n.º 3
0
 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"])
Exemplo n.º 4
0
 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"])