def test_init_failed_via_base_handler(self):
        def assert_not_implemented(method, path, headers):
            req = Request.blank(
                path, environ={'REQUEST_METHOD': method},
                headers=headers)
            try:
                BaseStorletHandler(
                    req, mock.MagicMock(), mock.MagicMock(), mock.MagicMock())
            except __HOLE__:
                pass
            except Exception as e:
                self.fail('Unexpected Error: %s raised with %s, %s, %s' %
                          (repr(e), path, method, headers))

        for method in ('PUT', 'GET', 'POST'):
            for path in ('', '/v1', '/v1/a', '/v1/a/c', '/v1/a/c/o'):
                for headers in ({}, {'X-Run-Storlet': 'Storlet-1.0.jar'}):
                    assert_not_implemented(method, path, headers)
dataset/ETHPy150Open openstack/storlets/tests/unit/swift/storlet_middleware/test_storlet_handler.py/TestStorletBaseHandler.test_init_failed_via_base_handler