Index: main/waeup.kofa/trunk/src/waeup/kofa/utils/tests/test_helpers.py
===================================================================
--- main/waeup.kofa/trunk/src/waeup/kofa/utils/tests/test_helpers.py	(revision 9372)
+++ main/waeup.kofa/trunk/src/waeup/kofa/utils/tests/test_helpers.py	(revision 9689)
@@ -28,5 +28,5 @@
 from cStringIO import StringIO
 from zope import schema
-from zope.interface import Interface, Attribute, implements
+from zope.interface import Interface, Attribute, implements, implementer
 from zope.security.testing import Principal, Participation
 from zope.security.management import newInteraction, endInteraction
@@ -52,4 +52,33 @@
         self.assertEqual(result4, 30)
         return
+
+    def test_attrs_to_fields_properties(self):
+        # we can omit single fields in order to retrieve properties
+        class IMyInterface(Interface):
+            attr1 = schema.Int(
+                title = u'Attribute 1', readonly = True, default = 110,
+                )
+
+        @helpers.attrs_to_fields
+        @implementer(IMyInterface)
+        class MyClass1(object):
+            @property
+            def attr1(self):
+                return 42
+
+        @implementer(IMyInterface)
+        class MyClass2(object):
+            @property
+            def attr1(self):
+                return 42
+        MyClass2 = helpers.attrs_to_fields(MyClass2, omit=['attr1'])
+
+        obj1 = MyClass1()
+        obj2 = MyClass2()
+
+        self.assertEqual(obj1.attr1, 110)
+        self.assertEqual(obj2.attr1, 42)
+        return
+
 
 class RemoveFileOrDirectoryTestCase(unittest.TestCase):
@@ -461,4 +490,5 @@
             contents, '\r\n')
         return
+
 
 
