Run black on moto & test directories.
This commit is contained in:
parent
c820395dbf
commit
96e5b1993d
507 changed files with 52541 additions and 47814 deletions
|
|
@ -4,13 +4,14 @@ from moto.s3bucket_path.utils import bucket_name_from_url
|
|||
|
||||
|
||||
def test_base_url():
|
||||
expect(bucket_name_from_url('https://s3.amazonaws.com/')).should.equal(None)
|
||||
expect(bucket_name_from_url("https://s3.amazonaws.com/")).should.equal(None)
|
||||
|
||||
|
||||
def test_localhost_bucket():
|
||||
expect(bucket_name_from_url('https://localhost:5000/wfoobar/abc')
|
||||
).should.equal("wfoobar")
|
||||
expect(bucket_name_from_url("https://localhost:5000/wfoobar/abc")).should.equal(
|
||||
"wfoobar"
|
||||
)
|
||||
|
||||
|
||||
def test_localhost_without_bucket():
|
||||
expect(bucket_name_from_url('https://www.localhost:5000')).should.equal(None)
|
||||
expect(bucket_name_from_url("https://www.localhost:5000")).should.equal(None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue