fix indentiation

This commit is contained in:
Stephen D. Spencer 2015-12-28 18:02:24 +00:00
parent 22e89838f2
commit 7373758237

View File

@ -43,19 +43,19 @@ class PipModuleTest(integration.ModuleCase):
def pip_successful_install(self, target, expect=('flake8', 'pep8',)): def pip_successful_install(self, target, expect=('flake8', 'pep8',)):
expect = set(expect) expect = set(expect)
success = re.search( success = re.search(
r'^.*Successfully installed\s([^\n]+)(?:Clean.*)?', r'^.*Successfully installed\s([^\n]+)(?:Clean.*)?',
target, target,
re.M | re.S) re.M | re.S)
success_for = re.findall( success_for = re.findall(
r'(flake8|pep8)-[\d\.]', r'(flake8|pep8)-[\d\.]',
success.groups()[0] success.groups()[0]
) if success else [] ) if success else []
return expect.issubset(set(success_for)) return expect.issubset(set(success_for))
def test_issue_2087_missing_pip(self): def test_issue_2087_missing_pip(self):
# Let's create the testing virtualenv # Let's create the testing virtualenv