Merge "Split commands properly for bash completion test."
This commit is contained in:
commit
f03575a8c7
@ -102,7 +102,12 @@ class ShellTest(utils.TestCase):
|
|||||||
def test_bash_completion(self):
|
def test_bash_completion(self):
|
||||||
stdout, stderr = self.shell('bash-completion')
|
stdout, stderr = self.shell('bash-completion')
|
||||||
# just check we have some output
|
# just check we have some output
|
||||||
required = ['--matching --wrap help secgroup-delete-rule --priority']
|
required = [
|
||||||
|
'.*--matching',
|
||||||
|
'.*--wrap',
|
||||||
|
'.*help',
|
||||||
|
'.*secgroup-delete-rule',
|
||||||
|
'.*--priority']
|
||||||
for r in required:
|
for r in required:
|
||||||
self.assertThat((stdout + stderr),
|
self.assertThat((stdout + stderr),
|
||||||
matchers.MatchesRegex(r, re.DOTALL | re.MULTILINE))
|
matchers.MatchesRegex(r, re.DOTALL | re.MULTILINE))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user