Permalink
Browse files

Merge "Split commands properly for bash completion test."

  • Loading branch information...
2 parents d7f1a71 + 46cd432 commit f03575a8c742cb789c89620fc171edd5e75d426d Jenkins committed with openstack-gerrit Mar 26, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 tests/test_shell.py
View
@@ -102,7 +102,12 @@ def test_help_no_options(self):
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))

0 comments on commit f03575a

Please sign in to comment.