Skip to content

Commit

Permalink
Merge "Split commands properly for bash completion test."
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Mar 26, 2013
2 parents d7f1a71 + 46cd432 commit f03575a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_shell.py
Expand Up @@ -102,7 +102,12 @@ def test_help_no_options(self):
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))
Expand Down

0 comments on commit f03575a

Please sign in to comment.