Skip to content

Commit

Permalink
Merge branch 'admonition-visitors-help' into develop
Browse files Browse the repository at this point in the history
Closes aws#225

* admonition-visitors-help:
  Add test for warning block rendering
  • Loading branch information
jamesls committed Aug 20, 2013
2 parents 31ea2fb + 81ec6bf commit 492e282
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/integration/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ def test_operation_help_with_required_arg(self):
self.assertEqual(p.rc, 1, p.stderr)
self.assertIn('get-object', p.stdout)

def test_help_with_warning_blocks(self):
p = aws('elastictranscoder create-pipeline help')
self.assertEqual(p.rc, 1, p.stderr)
# Check text that appears in the warning block to ensure
# the block was actually rendered.
self.assertIn('To receive notifications', p.stdout)

def test_param_shorthand(self):
p = aws(
'ec2 describe-instances --filters Name=instance-id,Values=i-123')
Expand Down

0 comments on commit 492e282

Please sign in to comment.