Add SNS applications and endpoints.

This commit is contained in:
Steve Pulec 2015-03-14 09:06:31 -04:00
commit 706c60175b
5 changed files with 503 additions and 16 deletions

View file

@ -4,6 +4,7 @@ import six
import sure # noqa
from boto.exception import BotoServerError
from moto import mock_sns
from moto.sns.models import DEFAULT_TOPIC_POLICY, DEFAULT_EFFECTIVE_DELIVERY_POLICY, DEFAULT_PAGE_SIZE
@ -27,6 +28,12 @@ def test_create_and_delete_topic():
topics.should.have.length_of(0)
@mock_sns
def test_get_missing_topic():
conn = boto.connect_sns()
conn.get_topic_attributes.when.called_with("a-fake-arn").should.throw(BotoServerError)
@mock_sns
def test_create_topic_in_multiple_regions():
west1_conn = boto.sns.connect_to_region("us-west-1")