Handle edge case where you can end up with double dashes in target group names

This commit is contained in:
William Richard 2018-04-12 14:48:37 -04:00
commit eb018c01a5
No known key found for this signature in database
GPG key ID: F7F8BA4DDBE1ABED
2 changed files with 5 additions and 1 deletions

View file

@ -1584,5 +1584,5 @@ def test_create_target_groups_through_cloudformation():
# and one named MyTargetGroup
assert len([tg for tg in target_group_dicts if tg['TargetGroupName'] == 'MyTargetGroup']) == 1
assert len(
[tg for tg in target_group_dicts if tg['TargetGroupName'].startswith('test-stack-test')]
[tg for tg in target_group_dicts if tg['TargetGroupName'].startswith('test-stack')]
) == 2