def test_get_deleted_project_with_non_member(self):
        user = UserFactory.create()

        project = ProjectFactory.create()
        project.delete()

        request = self.factory.get(
            '/api/projects/%s/' % project.id)
        force_authenticate(request, user=user)
        view = SingleProject.as_view()
        response = view(request, project_id=project.id).render()

        self.assertEqual(response.status_code, 404)
dataset/ETHPy150Open ExCiteS/geokey/geokey/projects/tests/test_views.py/SingleProjectTest.test_get_deleted_project_with_non_member/original