Ejemplo n.º 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'
Ejemplo n.º 2
0
def test_parse_bucket_no_name_provided():
    parse.parse_bucket({})
Ejemplo n.º 3
0
def test_parse_bucket_invalid_kwarg():
    b = {'bucket': 'test', 'invalid': 'kwarg'}
    parse.parse_bucket(b)
Ejemplo n.º 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'
Ejemplo n.º 5
0
def test_parse_bucket_no_name_provided():
    parse.parse_bucket({})
Ejemplo n.º 6
0
def test_parse_bucket_invalid_kwarg():
    b = {'bucket': 'test', 'invalid': 'kwarg'}
    parse.parse_bucket(b)