Fix error for describing kinesis stream that has not been created.

This commit is contained in:
Steve Pulec 2015-11-02 13:25:31 -05:00
commit d9faab3e5e
2 changed files with 13 additions and 1 deletions

View file

@ -2,6 +2,7 @@ from __future__ import unicode_literals
import datetime
from botocore.exceptions import ClientError
import boto3
from freezegun import freeze_time
import sure # noqa
@ -86,6 +87,14 @@ def test_create_stream():
})
@mock_kinesis
@freeze_time("2015-03-01")
def test_deescribe_non_existant_stream():
client = boto3.client('firehose', region_name='us-east-1')
client.describe_delivery_stream.when.called_with(DeliveryStreamName='not-a-stream').should.throw(ClientError)
@mock_kinesis
@freeze_time("2015-03-01")
def test_list_and_delete_stream():