Add pip installed and removed test (#33178)

This commit is contained in:
Justin Anderson 2016-05-12 09:31:41 -06:00 committed by Mike Place
parent 96e3586f12
commit a09e1b6335

View file

@ -32,6 +32,15 @@ from salt.modules.virtualenv_mod import KNOWN_BINARY_NAMES
@skipIf(salt.utils.which_bin(KNOWN_BINARY_NAMES) is None, 'virtualenv not installed')
class PipStateTest(integration.ModuleCase, integration.SaltReturnAssertsMixIn):
def test_pip_installed_removed(self):
'''
Tests installed and removed states
'''
ret = self.run_state('pip.installed', name='docker-py')
self.assertSaltTrueReturn(ret)
ret = self.run_state('pip.removed', name='docker-py')
self.assertSaltTrueReturn(ret)
def test_pip_installed_errors(self):
venv_dir = os.path.join(
integration.SYS_TMP_DIR, 'pip-installed-errors'