Fix policy date
This commit is contained in:
parent
ce7b5ebf54
commit
8048e39dc0
@ -12,6 +12,8 @@ import sure # noqa
|
|||||||
|
|
||||||
from freezegun import freeze_time
|
from freezegun import freeze_time
|
||||||
from moto import mock_lambda, mock_s3, mock_ec2, mock_sns, mock_logs, settings
|
from moto import mock_lambda, mock_s3, mock_ec2, mock_sns, mock_logs, settings
|
||||||
|
from nose.tools import assert_raises
|
||||||
|
from botocore.exceptions import ClientError
|
||||||
|
|
||||||
_lambda_region = 'us-west-2'
|
_lambda_region = 'us-west-2'
|
||||||
|
|
||||||
@ -397,6 +399,11 @@ def test_get_function():
|
|||||||
result = conn.get_function(FunctionName='testFunction', Qualifier='$LATEST')
|
result = conn.get_function(FunctionName='testFunction', Qualifier='$LATEST')
|
||||||
result['Configuration']['Version'].should.equal('$LATEST')
|
result['Configuration']['Version'].should.equal('$LATEST')
|
||||||
|
|
||||||
|
# Test get function when can't find function name
|
||||||
|
with assert_raises(ClientError):
|
||||||
|
conn.get_function(FunctionName='junk', Qualifier='$LATEST')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@mock_lambda
|
@mock_lambda
|
||||||
@mock_s3
|
@mock_s3
|
||||||
|
Loading…
Reference in New Issue
Block a user