Example #1
0
 def test_instantiate_default(self):
     """Instantiate default backend with no parameters"""
     with self.assertRaises(ImproperlyConfigured):
         storage.SwiftStorage()
Example #2
0
 def default_storage(self, auth_config, exclude=None, **params):
     """Instantiate default storage with auth parameters"""
     return storage.SwiftStorage(**auth_params(auth_config, exclude=exclude, **params))