Don't assume package installation order.

Additionally pep8 when installed using wheel, reports the version
together with the name.
This commit is contained in:
Pedro Algarvio 2015-04-20 14:45:25 +01:00
parent 1181a50d0d
commit b62df62151

View file

@ -181,10 +181,11 @@ class PipModuleTest(integration.ModuleCase):
)
try:
self.assertEqual(ret['retcode'], 0)
self.assertIn(
'Successfully installed pep8 Blinker SaltTesting',
ret['stdout']
)
for package in ('Blinker', 'SaltTesting', 'pep8'):
self.assertRegexpMatches(
ret['stdout'],
r'(?:.*)(Successfully installed)(?:.*)({0})(?:.*)'.format(package)
)
except AssertionError:
import pprint
pprint.pprint(ret)