Adjust ec2 regions tests
This commit is contained in:
parent
9d9b620878
commit
cd9b7072a2
@ -11,7 +11,7 @@ from moto import mock_ec2, mock_ec2_deprecated
|
|||||||
def test_describe_regions():
|
def test_describe_regions():
|
||||||
conn = boto.connect_ec2("the_key", "the_secret")
|
conn = boto.connect_ec2("the_key", "the_secret")
|
||||||
regions = conn.get_all_regions()
|
regions = conn.get_all_regions()
|
||||||
regions.should.have.length_of(22)
|
len(regions).should.be.greater_than(1)
|
||||||
for region in regions:
|
for region in regions:
|
||||||
region.endpoint.should.contain(region.name)
|
region.endpoint.should.contain(region.name)
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ def test_availability_zones():
|
|||||||
def test_boto3_describe_regions():
|
def test_boto3_describe_regions():
|
||||||
ec2 = boto3.client("ec2", "us-east-1")
|
ec2 = boto3.client("ec2", "us-east-1")
|
||||||
resp = ec2.describe_regions()
|
resp = ec2.describe_regions()
|
||||||
resp["Regions"].should.have.length_of(22)
|
len(resp["Regions"]).should.be.greater_than(1)
|
||||||
for rec in resp["Regions"]:
|
for rec in resp["Regions"]:
|
||||||
rec["Endpoint"].should.contain(rec["RegionName"])
|
rec["Endpoint"].should.contain(rec["RegionName"])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user