

def test_get_with_anonymous(self):
    view = ApplicationOverview.as_view()
    url = reverse('admin:app_overview')
    request = APIRequestFactory().get(url)
    request.user = AnonymousUser()
    response = view(request)
    self.assertTrue(isinstance(response, HttpResponseRedirect))

dataset/ETHPy150Open ExCiteS/geokey/geokey/applications/tests/test_views.py ApplicationOverviewTest.test_get_with_anonymous/original