[lambda] Add 404 test for DeleteFunction

This commit is contained in:
Hugo Lopes Tavares 2016-02-16 15:38:59 -05:00
parent 7c36fca1dd
commit 4c10e54a36

View File

@ -1,5 +1,6 @@
from __future__ import unicode_literals
import botocore.client
import boto3
import hashlib
import io
@ -183,12 +184,9 @@ def test_delete_function():
)
success_result = conn.delete_function(FunctionName='testFunction')
success_result.should.equal({'ResponseMetadata': {'HTTPStatusCode': 204}})
# FIXME:!!!!
# not_found_result = conn.delete_function(FunctionName='testFunctionThatDoesntExist')
# not_found_result.should.equal({'ResponseMetadata': {'HTTPStatusCode': 404}})
conn.delete_function.when.called_with(FunctionName='testFunctionThatDoesntExist').should.throw(botocore.client.ClientError)
@mock_lambda