Example #1
0
 def test_instantiate_static(self):
     """Instantiate static backend with no parameters"""
     with self.assertRaises(ImproperlyConfigured):
         storage.StaticSwiftStorage()
Example #2
0
 def static_storage(self, auth_config, exclude=None, **params):
     """Instantiate static storage with auth parameters"""
     return storage.StaticSwiftStorage(**auth_params(auth_config, exclude=exclude, **params))