Merge "Split commands properly for bash completion test."

This commit is contained in:
Jenkins 2013-03-26 05:54:46 +00:00 committed by Gerrit Code Review
commit f03575a8c7

@ -102,7 +102,12 @@ class ShellTest(utils.TestCase):
def test_bash_completion(self):
stdout, stderr = self.shell('bash-completion')
# 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:
self.assertThat((stdout + stderr),
matchers.MatchesRegex(r, re.DOTALL | re.MULTILINE))