

def test_get_with_user(self):
    view = ApplicationConnected.as_view()
    url = reverse('admin:app_connected')
    request = APIRequestFactory().get(url)
    request.user = UserFactory.create()
    response = view(request).render()
    self.assertEqual(response.status_code, 200)

dataset/ETHPy150Open ExCiteS/geokey/geokey/applications/tests/test_views.py ApplicationConnectedTest.test_get_with_user/original