def test_no_init_kwargs(self):
        """
        Test that a view can't be accidentally instantiated before deployment
        """
        try:
            SimpleView(key='value').as_view()
            self.fail('Should not be able to instantiate a view')
        except __HOLE__:
            pass
dataset/ETHPy150Open django/django/tests/generic_views/test_base.py/ViewTest.test_no_init_kwargs