Index: main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_root.py
===================================================================
--- main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_root.py	(revision 5766)
+++ main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_root.py	(revision 5808)
@@ -26,9 +26,17 @@
 import unittest
 from StringIO import StringIO
+from zope.component.hooks import setSite, clearSite
 from zope.interface.verify import verifyClass, verifyObject
-from waeup.sirp.applicants import interfaces
+from zope.site import LocalSiteManager
+from waeup.sirp.app import University
+from waeup.sirp.applicants import (
+    interfaces, application_exists, get_applicant_data, Applicant,
+    ApplicantsContainer,
+    )
 from waeup.sirp.applicants.root import (
     ApplicantsRoot, ApplicantsPlugin,
     )
+from waeup.sirp.testing import WAeUPSIRPUnitTestLayer
+
 
 class FakeSite(dict):
@@ -148,4 +156,37 @@
         return
 
+fake_apps = {
+    'pude10' : ApplicantsContainer(),
+    'pude11' : ApplicantsContainer(),
+    }
+
+fake_apps['pude10']['APP-99999'] = Applicant()
+
+class HelperToolsTest(unittest.TestCase):
+
+    layer = WAeUPSIRPUnitTestLayer
+    
+    def setUp(self):
+        self.app = University()
+        # Insert some applicants...
+        for container, data in fake_apps.items():
+            self.app['applicants'][container] = data
+        self.app.setSiteManager(LocalSiteManager(self.app))
+        setSite(self.app)
+        return
+
+    def tearDown(self):
+        clearSite()
+        return
+
+    def test_application_exists(self):
+        result = application_exists('APP-99999')
+        assert result is False
+
+        result = application_exists('APP-44444')
+        assert result is True
+        return
+
+    
 def suite():
     suite = unittest.TestSuite()
@@ -153,4 +194,5 @@
             ApplicantsRootTestCase,
             ApplicantsRootPluginTestCase,
+            HelperToolsTest,
             ]:
         suite.addTests(unittest.TestLoader().loadTestsFromTestCase(testcase))
