From 81ec6bfa075d75d84369e99c6c8ab05fe944c615 Mon Sep 17 00:00:00 2001 From: James Saryerwinnie Date: Mon, 19 Aug 2013 10:47:24 -0700 Subject: [PATCH] Add test for warning block rendering To verify that text writers on windows properly render warning blocks. --- tests/integration/test_cli.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/integration/test_cli.py b/tests/integration/test_cli.py index b2d737438a11..82c71d5d3ce3 100644 --- a/tests/integration/test_cli.py +++ b/tests/integration/test_cli.py @@ -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')