Set deleted status on vpc peer deletion.

This commit is contained in:
Mark Challoner 2018-11-14 12:03:42 +00:00
commit 6e6f23a1b0
No known key found for this signature in database
GPG key ID: 58EABDB1293D248B
2 changed files with 8 additions and 4 deletions

View file

@ -89,7 +89,8 @@ def test_vpc_peering_connections_delete():
verdict.should.equal(True)
all_vpc_pcxs = conn.get_all_vpc_peering_connections()
all_vpc_pcxs.should.have.length_of(0)
all_vpc_pcxs.should.have.length_of(1)
all_vpc_pcxs[0]._status.code.should.equal('deleted')
with assert_raises(EC2ResponseError) as cm:
conn.delete_vpc_peering_connection("pcx-1234abcd")