Index: main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests/test_browser.py
===================================================================
--- main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests/test_browser.py	(revision 14064)
+++ main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests/test_browser.py	(revision 14147)
@@ -168,5 +168,5 @@
         return
 
-    def test_application_slip(self):
+    def test_application_slips(self):
 
         self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
@@ -185,4 +185,19 @@
         open(path, 'wb').write(self.browser.contents)
         print "Sample application_slip.pdf written to %s" % path
+        # Screening invitation letter is not yet available
+        self.browser.open(self.view_path)
+        self.assertFalse('invitation slip' in self.browser.contents)
+        self.browser.open(self.view_path + '/screening_invitation_slip.pdf')
+        self.assertTrue('Forbidden' in self.browser.contents)
+        self.applicant.screening_date = u'any date'
+        # The invitation letter can be printed
+        self.browser.open(self.view_path)
+        self.browser.getLink("invitation").click()
+        self.assertEqual(self.browser.headers['Status'], '200 Ok')
+        self.assertEqual(self.browser.headers['Content-Type'],
+                         'application/pdf')
+        path = os.path.join(samples_dir(), 'screening_invitation_slip.pdf')
+        open(path, 'wb').write(self.browser.contents)
+        print "Sample screening_invitation_slip.pdf written to %s" % path
 
     def test_akoka_application_slip(self):
