mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
fix indentiation
This commit is contained in:
parent
22e89838f2
commit
7373758237
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user