Ejemplo n.º 1
0
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
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 4
0
 def test_purge(self):
     '''
     Test - Remove packages along with all configuration files.
     '''
     assert aptpkg.purge(name='tmux') == UNINSTALL
Ejemplo n.º 5
0
 def test_purge(self):
     '''
     Test - Remove packages along with all configuration files.
     '''
     self.assertEqual(aptpkg.purge(name='tmux'), UNINSTALL)