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