diff --git a/common.py b/common.py index d8e5c75..373d191 100644 --- a/common.py +++ b/common.py @@ -92,10 +92,7 @@ def setup(): if 'fixtures' not in config: raise RuntimeError('Your config file is missing the fixtures section!') - if config.fixtures.has_key('bucket prefix'): - template = config.fixtures['bucket prefix'] - else: - template = 'test-{random}-' + template = config.fixtures.get('bucket prefix', 'test-{random}-') prefix = choose_bucket_prefix(template=template) if prefix == '': raise RuntimeError("Empty Prefix! Aborting!")