def test_get_urls_throws_type_error(self):
        with self.assertRaises(TypeError):
            try:
                admin_instance = ModelAdmin2(BigThing, Admin2)
                admin_instance.views = [views.AdminView(None, None, None)]
                admin_instance.get_urls()

            except __HOLE__ as e:
                message = u"Cannot instantiate admin view " \
                    '"ModelAdmin2.None". The error that got raised was: ' \
                    "'NoneType' object has no attribute 'as_view'"
                self.assertEqual(e.args[0], message)
                raise
dataset/ETHPy150Open pydanny/django-admin2/djadmin2/tests/test_types.py/ModelAdminTest.test_get_urls_throws_type_error