test not implemented for sqs
This commit is contained in:
parent
757c45c659
commit
43591249ae
@ -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,
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user