should pass unit tests
This commit is contained in:
parent
37f643ecb4
commit
ffa6b1d9c1
@ -113,17 +113,9 @@ def test_tag_limit_exceeded():
|
|||||||
conn = boto.connect_ec2('the_key', 'the_secret')
|
conn = boto.connect_ec2('the_key', 'the_secret')
|
||||||
reservation = conn.run_instances('ami-1234abcd')
|
reservation = conn.run_instances('ami-1234abcd')
|
||||||
instance = reservation.instances[0]
|
instance = reservation.instances[0]
|
||||||
tag_dict = {'01': '',
|
tag_dict = {}
|
||||||
'02': '',
|
for i in range(51):
|
||||||
'03': '',
|
tag_dict['{:02}'.format(i)] = ''
|
||||||
'04': '',
|
|
||||||
'05': '',
|
|
||||||
'06': '',
|
|
||||||
'07': '',
|
|
||||||
'08': '',
|
|
||||||
'09': '',
|
|
||||||
'10': '',
|
|
||||||
'11': ''}
|
|
||||||
|
|
||||||
with assert_raises(EC2ResponseError) as cm:
|
with assert_raises(EC2ResponseError) as cm:
|
||||||
conn.create_tags(instance.id, tag_dict)
|
conn.create_tags(instance.id, tag_dict)
|
||||||
|
Loading…
Reference in New Issue
Block a user