def test_unregister(self):
        hook = AdminWidgetHook(extension=self.extension, widget_cls=TestWidget)

        hook.disable_hook()

        self.assertNotIn(TestWidget, secondary_widgets)
Testing AdminWidgetHook unitializing
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/extensions/tests.py/AdminWidgetHookTests.test_unregister