Fix tests for py26 and py3.

This commit is contained in:
Steve Pulec 2017-02-27 20:53:57 -05:00
commit 1287d53817
4 changed files with 6 additions and 7 deletions

View file

@ -6,7 +6,7 @@ from freezegun import freeze_time
import sure # noqa
from moto.packages.responses import responses
from moto import mock_sns, mock_sns_deprecated, mock_sqs_deprecated
from moto import mock_sns_deprecated, mock_sqs_deprecated
@mock_sqs_deprecated
@ -54,7 +54,6 @@ def test_publish_to_sqs_in_different_region():
@freeze_time("2013-01-01")
@mock_sns
@mock_sns_deprecated
def test_publish_to_http():
responses.add(

View file

@ -82,7 +82,7 @@ def test_topic_attributes():
attributes["SubscriptionsConfirmed"].should.equal(0)
attributes["SubscriptionsDeleted"].should.equal(0)
attributes["DeliveryPolicy"].should.equal("")
attributes["EffectiveDeliveryPolicy"].should.equal(
json.loads(attributes["EffectiveDeliveryPolicy"]).should.equal(
DEFAULT_EFFECTIVE_DELIVERY_POLICY)
# boto can't handle prefix-mandatory strings:

View file

@ -78,7 +78,7 @@ def test_topic_attributes():
attributes["SubscriptionsConfirmed"].should.equal('0')
attributes["SubscriptionsDeleted"].should.equal('0')
attributes["DeliveryPolicy"].should.equal("")
attributes["EffectiveDeliveryPolicy"].should.equal(
json.loads(attributes["EffectiveDeliveryPolicy"]).should.equal(
DEFAULT_EFFECTIVE_DELIVERY_POLICY)
# boto can't handle prefix-mandatory strings: