def test_index(): factory = RequestFactory() request = factory.get(reverse('index')) response = index(request) assert response.status_code == 200