test not implemented for sqs

This commit is contained in:
Steve Pulec 2013-02-25 23:27:10 -05:00
parent 757c45c659
commit 43591249ae
2 changed files with 7 additions and 2 deletions

View File

@ -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,

View File

@ -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)