Ejemplo n.º 1
0
def test_base_url():
    expect(bucket_name_from_url('https://s3.amazonaws.com/')).should.equal(None)
Ejemplo n.º 2
0
def test_localhost_bucket():
    expect(bucket_name_from_url('https://localhost:5000/wfoobar/abc')
           ).should.equal("wfoobar")
Ejemplo n.º 3
0
def test_localhost_without_bucket():
    expect(bucket_name_from_url('https://www.localhost:5000')).should.equal(None)