'Regression test for bug #21530.
If the admin app include is replaced with exactly one url
pattern, then the technical 404 template should be displayed.
The bug here was that an AttributeError caused a 500 response.'

@override_settings(ROOT_URLCONF=u'view_tests.regression_21530_urls')
def test_regression_21530(self):

    response = self.client.get(u'/')
    self.assertContains(response, u'Page    not    found    <span>(404)</span>', status_code=404)
