@mock_ec2
def test_igw_desribe():
 conn = boto.connect_vpc(u'the_key', u'the_secret')
 igw = conn.create_internet_gateway()
 igw_by_search = conn.get_all_internet_gateways([igw.id])[0]
 igw.id.should.equal(igw_by_search.id)

@ mock_ec2 def test_igw_desribe ( ) : conn = boto . connect_vpc ( u'the_key' , u'the_secret' ) igw = conn . create_internet_gateway ( ) igw_by_search = conn . get_all_internet_gateways ( [ igw . id ] ) [ 0 ] igw . id . should . equal ( igw_by_search . id )
internet gateway fetch by id .