コード例 #1
0
ファイル: test_shell.py プロジェクト: ntauthority/gdm
 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
ファイル: test_shell.py プロジェクト: nta/gdm
 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
ファイル: test_shell.py プロジェクト: ntauthority/gdm
 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
ファイル: test_shell.py プロジェクト: nta/gdm
 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"])