コード例 #1
0
ファイル: test_aptpkg.py プロジェクト: mcalmer/salt
def test_purge(uninstall_var):
    """
    Test - Remove packages along with all configuration files.
    """
    with patch("salt.modules.aptpkg._uninstall",
               MagicMock(return_value=uninstall_var)):
        assert aptpkg.purge(name="tmux") == uninstall_var
コード例 #2
0
 def test_purge(self):
     '''
     Test - Remove packages along with all configuration files.
     '''
     with patch('salt.modules.aptpkg._uninstall',
                MagicMock(return_value=UNINSTALL)):
         self.assertEqual(aptpkg.purge(name='tmux'), UNINSTALL)
コード例 #3
0
 def test_purge(self):
     """
     Test - Remove packages along with all configuration files.
     """
     with patch("salt.modules.aptpkg._uninstall",
                MagicMock(return_value=UNINSTALL)):
         self.assertEqual(aptpkg.purge(name="tmux"), UNINSTALL)
コード例 #4
0
ファイル: test_aptpkg.py プロジェクト: arbulu89/salt
 def test_purge(self):
     '''
     Test - Remove packages along with all configuration files.
     '''
     assert aptpkg.purge(name='tmux') == UNINSTALL
コード例 #5
0
ファイル: aptpkg_test.py プロジェクト: bryson/salt
 def test_purge(self):
     '''
     Test - Remove packages along with all configuration files.
     '''
     self.assertEqual(aptpkg.purge(name='tmux'), UNINSTALL)