Beispiel #1
0
def test_parse_bucket_success():
    b = {'bucket': 'test', 'region': 'test'}
    bucket = parse.parse_bucket(b)
    assert bucket.name == 'test'
    assert bucket.region == 'test'
Beispiel #2
0
def test_parse_bucket_no_name_provided():
    parse.parse_bucket({})
Beispiel #3
0
def test_parse_bucket_invalid_kwarg():
    b = {'bucket': 'test', 'invalid': 'kwarg'}
    parse.parse_bucket(b)
Beispiel #4
0
def test_parse_bucket_success():
    b = {'bucket': 'test', 'region': 'test'}
    bucket = parse.parse_bucket(b)
    assert bucket.name == 'test'
    assert bucket.region == 'test'
Beispiel #5
0
def test_parse_bucket_no_name_provided():
    parse.parse_bucket({})
Beispiel #6
0
def test_parse_bucket_invalid_kwarg():
    b = {'bucket': 'test', 'invalid': 'kwarg'}
    parse.parse_bucket(b)