Route Tables / Routes: Initial implementation. (Fixed deletion of main route table via deletion of VPC.)

This commit is contained in:
Shawn Falkner-Horine 2014-09-05 08:45:36 -07:00
commit 02f1dc0b3e
2 changed files with 18 additions and 11 deletions

View file

@ -58,6 +58,12 @@ def test_route_tables_additional():
local_route.state.should.equal('active')
local_route.destination_cidr_block.should.equal(vpc.cidr_block)
with assert_raises(EC2ResponseError) as cm:
conn.delete_vpc(vpc.id)
cm.exception.code.should.equal('DependencyViolation')
cm.exception.status.should.equal(400)
cm.exception.request_id.should_not.be.none
conn.delete_route_table(route_table.id)
all_route_tables = conn.get_all_route_tables()