diff --git a/moto/sqs/urls.py b/moto/sqs/urls.py index acf8c4a32..a17ed535a 100644 --- a/moto/sqs/urls.py +++ b/moto/sqs/urls.py @@ -1,8 +1,6 @@ from .responses import QueueResponse, QueuesResponse base_url = "https://(.*).amazonaws.com" -#base_url2 = "https://sqs.us-east-1.amazonaws.com" - urls = { '{0}/$'.format(base_url): QueuesResponse().dispatch, diff --git a/tests/test_sqs/test_sqs.py b/tests/test_sqs/test_sqs.py index edf61f11b..1c220f764 100644 --- a/tests/test_sqs/test_sqs.py +++ b/tests/test_sqs/test_sqs.py @@ -1,5 +1,6 @@ import boto from boto.exception import SQSError +import requests from sure import expect @@ -112,3 +113,9 @@ def test_delete_batch_operation(): queue.delete_message_batch(messages) queue.count().should.equal(1) + + +@mock_sqs +def test_not_implemented_method(): + requests.post.when.called_with("https://foobar.amazonaws.com/", + data={'Action':['foobar']}).should.throw(NotImplementedError)