@@ -0,0 +1,760 @@
+# -*- coding: utf-8 -*-%0Afrom unittest import TestCase%0A%0Aclass TestEntryView(TestCase):%0A%0A    def test_echo(self):%0A        from pyramid.testing import DummyRequest%0A        from pyramid.httpexceptions import HTTPBadRequest%0A        from c2cgeoportal.views.exportcsv import echo%0A%0A        request = DummyRequest()%0A%0A        responce = echo(request)%0A        request.params = %7B%0A            'csv': '12,34'%0A        %7D%0A        self.assertEqual(type(responce), HTTPBadRequest)%0A%0A        request.method = 'POST'%0A        request.params = %7B%7D%0A        responce = echo(request)%0A        self.assertEqual(type(responce), HTTPBadRequest)%0A%0A        request.params = %7B%0A            'csv': '%C3%A9%C3%A0,%C3%A8%C3%A7'%0A        %7D%0A        responce = echo(request)%0A        self.assertEqual(responce.body, '%C3%A9%C3%A0,%C3%A8%C3%A7')%0A

add tests for exportcsv