Skip to content

Commit

Permalink
Make EC2 help output assertion a regex
Browse files Browse the repository at this point in the history
This future proofs the test assertion in case "Amazon EC2" is
ever broken between two lines, similar to the rest of the test
cases.
  • Loading branch information
kyleknap committed Mar 11, 2024
1 parent 5c41473 commit d0fb0a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_help_output(self):
def test_service_help_output(self):
p = aws('ec2 help')
self.assertEqual(p.rc, 0)
self.assertIn('Amazon EC2', p.stdout)
self.assertRegex(p.stdout, r'Amazon\s+EC2')

def test_operation_help_output(self):
p = aws('ec2 describe-instances help')
Expand Down

0 comments on commit d0fb0a0

Please sign in to comment.