Skip pip test if pip is not installed

This commit is contained in:
Jeroen Dekkers 2012-06-19 03:11:54 +02:00
parent 92ffbaba6e
commit ac2344f2cb

View File

@ -11,6 +11,12 @@ class PipModuleTest(integration.ModuleCase):
'''
Validate the pip module
'''
def setUp(self):
super(PipModuleTest, self).setUp()
ret = self.run_function('cmd.which_bin', [['pip2', 'pip', 'pip-python']])
if not ret:
self.skipTest("pip not installed")
def test_freeze(self):
'''
pip.freeze