Remove HTTPHeaders from ResponseMetadata in some tests

botocore 1.4.29 started adding this. I'd match against it, but it
contains a date object and it's just not worth rewriting the assertions
for a key-by-key approach.
This commit is contained in:
Andrew Garrett 2016-06-29 23:45:21 +00:00
commit aab137ae66
3 changed files with 21 additions and 1 deletions

View file

@ -56,6 +56,7 @@ def test_delete_nat_gateway():
nat_gateway_id = nat_gateway['NatGateway']['NatGatewayId']
response = conn.delete_nat_gateway(NatGatewayId=nat_gateway_id)
response['ResponseMetadata'].pop('HTTPHeaders') # this is hard to match against, so remove it
response.should.equal({
'NatGatewayId': nat_gateway_id,
'ResponseMetadata': {