def test_registry_validate(self):
# This class is not subclass django.views.generic.View
class PopupView(object):
pass
with self.assertRaises(PopupViewIsNotSubclassView):
registry_popup_view.validate(PopupView)
with self.assertRaises(PopupViewIsNotSubclassView):
registry_popup_view.register(PopupView)
评论列表
文章目录