Пример #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"])
Пример #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"])
Пример #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"])
Пример #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"])