

def test_get_with_anonymous(self):
    view = ApplicationDelete.as_view()
    url = reverse('admin:app_delete', kwargs={
        'app_id': self.app.id,
    })
    request = APIRequestFactory().get(url)
    request.user = AnonymousUser()
    response = view(request, app_id=url.app.id)
    self.assertTrue(isinstance(response, HttpResponseRedirect))

dataset/ETHPy150Open ExCiteS/geokey/geokey/applications/tests/test_views.py ApplicationDeleteTest.test_get_with_anonymous/VarMisuse@67/87 `self`->`url`