Fix XML schema for ec2.describe_instance_types (#3194)
* Add test for describe_instance_types It currently fails due to an invalid XML schema * Add more detail to test * Fix the XML schema for describe_instance_types
This commit is contained in:
parent
08a08b6af8
commit
50d71eccbe
2 changed files with 37 additions and 7 deletions
18
tests/test_ec2/test_instance_types.py
Normal file
18
tests/test_ec2/test_instance_types.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import boto3
|
||||
import sure # noqa
|
||||
|
||||
from moto import mock_ec2
|
||||
|
||||
|
||||
@mock_ec2
|
||||
def test_describe_instance_types():
|
||||
client = boto3.client("ec2", "us-east-1")
|
||||
instance_types = client.describe_instance_types()
|
||||
|
||||
instance_types.should.have.key("InstanceTypes")
|
||||
instance_types["InstanceTypes"].should_not.be.empty
|
||||
instance_types["InstanceTypes"][0].should.have.key("InstanceType")
|
||||
instance_types["InstanceTypes"][0].should.have.key("MemoryInfo")
|
||||
instance_types["InstanceTypes"][0]["MemoryInfo"].should.have.key("SizeInMiB")
|
||||
Loading…
Add table
Add a link
Reference in a new issue