From 43591249aedfb701f3ba8fe0548ed23373dcaa00 Mon Sep 17 00:00:00 2001 From: Steve Pulec Date: Mon, 25 Feb 2013 23:27:10 -0500 Subject: [PATCH] test not implemented for sqs --- moto/sqs/urls.py | 2 -- tests/test_sqs/test_sqs.py | 7 +++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/moto/sqs/urls.py b/moto/sqs/urls.py index acf8c4a3..a17ed535 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 edf61f11..1c220f76 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)