예제 #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
 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)