def test_bad_plugins(self):
        class ForgotSchema(BaseHandler):
            def handle(self, d):
                pass

        class ForgotHandle(BaseHandler):
            schema = "mySchema"

        handler = ForgotSchema()
        try:
            handler.setup("s")
            self.fail("did not raise error")
        except __HOLE__ as e:
            pass
        handler.handle({})

        handler = ForgotHandle()
        handler.setup("s")
        try:
            handler.handle({})
            self.fail("did not raise error")
        except NotImplementedError:
            pass
dataset/ETHPy150Open istresearch/scrapy-cluster/kafka-monitor/tests/tests_offline.py/TestPlugins.test_bad_plugins