Index: /main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py	(revision 7904)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py	(revision 7905)
@@ -4,5 +4,5 @@
 import tempfile
 import unittest
-from zope.component import queryUtility
+from zope.component import queryUtility, getUtilitiesFor
 from zope.interface.verify import verifyObject, verifyClass
 from waeup.kofa.interfaces import ICSVExporter
@@ -10,4 +10,6 @@
 from waeup.kofa.applicants import ApplicantsContainer
 from waeup.kofa.applicants.export import ApplicantsContainerExporter
+from waeup.kofa.applicants.interfaces import (
+    IApplicantsContainerProvider, AppCatSource)
 
 class ApplicantsContainersExporterTest(unittest.TestCase):
@@ -37,9 +39,27 @@
         return
 
+    def setup_container(self, container):
+        # set all attributes of a container
+        container.code = u'dp2012'
+        container.title = u'General Studies 2012/13'
+        from waeup.kofa.applicants.interfaces import (
+            ApplicationTypeSource, ApplicantContainerProviderSource,)
+        container.prefix = list(ApplicationTypeSource()(container))[0]
+        container.year = 2012
+        provider = [
+            x for x in getUtilitiesFor(IApplicantsContainerProvider)
+            if x[0] == 'waeup.kofa.applicants.ApplicantsContainer'][0]
+        container.provider = provider
+        container.application_category = list(AppCatSource()(container))[0]
+        container.description = u'Some Description\nwith linebreak\n'
+        container.description += u'<<de>>man spriht deutsh'
+        container.startdate = datetime.date(2012, 1, 1)
+        container.enddate = datetime.date(2012, 1, 31)
+        return container
+
     def test_export(self):
         # we can export a set of applicants containers (w/o applicants)
         container = ApplicantsContainer()
-        container.code = u'dp2012'
-        container.startdate = datetime.date(2012, 1, 1)
+        container = self.setup_container(container)
         exporter = ApplicantsContainerExporter()
         exporter.export([container], self.outfile)
@@ -49,5 +69,9 @@
             'code,title,prefix,entry_level,year,provider,application_category,'
             'description,startdate,enddate,strict_deadline\r\n'
-            'dp2012,-,,100,,,,"This text can been seen by anonymous users.\nHere we put mult-lingual information about the study courses provided, the application procedure and deadlines.\n>>de<<\nDieser Text kann von anonymen Benutzern gelesen werden.\nHier koennen mehrsprachige Informationen fuer Antragsteller hinterlegt werden.",2012-01-01,,1\r\n'
+
+            'dp2012,General Studies 2012/13,app,100,2012,'
+            'waeup.kofa.applicants.ApplicantsContainer,basic,'
+            '"Some Description\nwith linebreak\n<<de>>man spriht deutsh",'
+            '2012-01-01,2012-01-31,1\r\n'
             )
         return
