Cleanup some tests to work across regions. cc #232
This commit is contained in:
parent
bd847bd941
commit
2a61ef6f91
4 changed files with 34 additions and 28 deletions
|
|
@ -106,7 +106,7 @@ def test_request_spot_instances_fulfilled():
|
|||
"""
|
||||
Test that moto correctly fullfills a spot instance request
|
||||
"""
|
||||
conn = boto.connect_ec2()
|
||||
conn = boto.ec2.connect_to_region("us-east-1")
|
||||
|
||||
request = conn.request_spot_instances(
|
||||
price=0.5, image_id='ami-abcd1234',
|
||||
|
|
@ -184,7 +184,7 @@ def test_get_all_spot_instance_requests_filtering():
|
|||
|
||||
@mock_ec2
|
||||
def test_request_spot_instances_setting_instance_id():
|
||||
conn = boto.connect_ec2()
|
||||
conn = boto.ec2.connect_to_region("us-east-1")
|
||||
request = conn.request_spot_instances(
|
||||
price=0.5, image_id='ami-abcd1234')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue