Index: main/waeup.sirp/trunk/src/waeup/sirp/utils/tests/test_helpers.py
===================================================================
--- main/waeup.sirp/trunk/src/waeup/sirp/utils/tests/test_helpers.py	(revision 5738)
+++ main/waeup.sirp/trunk/src/waeup/sirp/utils/tests/test_helpers.py	(revision 5739)
@@ -33,4 +33,37 @@
 class FakeObject(object):
     implements(IFakeObject)
+
+class RemoveFileOrDirectoryTestCase(unittest.TestCase):
+
+    def setUp(self):
+        self.dirpath = tempfile.mkdtemp()
+        self.filepath = os.path.join(self.dirpath, 'somefile')
+        self.non_file = os.path.join(self.dirpath, 'nonfile')
+        open(self.filepath, 'wb').write('Hi!')
+        return
+
+    def tearDown(self):
+        if os.path.exists(self.dirpath):
+            shutil.rmtree(self.dirpath)
+        return
+
+    def test_handle_not_existing_path(self):
+        result = helpers.removeFileOrDirectory(self.non_file)
+        self.assertTrue(result is None)
+        return
+
+    def test_handle_dir(self):
+        helpers.removeFileOrDirectory(self.dirpath)
+        self.assertFalse(
+            os.path.exists(self.dirpath)
+            )
+        return
+
+    def test_handle_file(self):
+        helpers.removeFileOrDirectory(self.filepath)
+        self.assertFalse(
+            os.path.exists(self.filepath)
+            )
+        return
 
 class CopyFileSystemTreeTestCase(unittest.TestCase):
@@ -117,4 +150,5 @@
         FactoryBaseTestCase,
         CopyFileSystemTreeTestCase,
+        RemoveFileOrDirectoryTestCase,
         ]:
         suite.addTests(
