From ffa6b1d9c15fc784eba08dd6bf4e796b7392cd3f Mon Sep 17 00:00:00 2001 From: Dan Tenenbaum Date: Thu, 3 Nov 2016 14:24:47 -0700 Subject: [PATCH] should pass unit tests --- tests/test_ec2/test_tags.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/tests/test_ec2/test_tags.py b/tests/test_ec2/test_tags.py index a5a124eb6..034e2c01b 100644 --- a/tests/test_ec2/test_tags.py +++ b/tests/test_ec2/test_tags.py @@ -113,17 +113,9 @@ def test_tag_limit_exceeded(): conn = boto.connect_ec2('the_key', 'the_secret') reservation = conn.run_instances('ami-1234abcd') instance = reservation.instances[0] - tag_dict = {'01': '', - '02': '', - '03': '', - '04': '', - '05': '', - '06': '', - '07': '', - '08': '', - '09': '', - '10': '', - '11': ''} + tag_dict = {} + for i in range(51): + tag_dict['{:02}'.format(i)] = '' with assert_raises(EC2ResponseError) as cm: conn.create_tags(instance.id, tag_dict)