replace pdbs with NotImplemented
This commit is contained in:
parent
1b3eca72b0
commit
757c45c659
3 changed files with 14 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import boto
|
||||
from boto.exception import S3ResponseError
|
||||
from boto.s3.key import Key
|
||||
import requests
|
||||
|
||||
import sure
|
||||
|
||||
|
|
@ -90,3 +91,13 @@ def test_get_all_buckets():
|
|||
buckets = conn.get_all_buckets()
|
||||
|
||||
buckets.should.have.length_of(2)
|
||||
|
||||
|
||||
@mock_s3
|
||||
def test_bucket_method_not_implemented():
|
||||
requests.post.when.called_with("https://foobar.s3.amazonaws.com/").should.throw(NotImplementedError)
|
||||
|
||||
|
||||
@mock_s3
|
||||
def test_key_method_not_implemented():
|
||||
requests.post.when.called_with("https://foobar.s3.amazonaws.com/foo").should.throw(NotImplementedError)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue