From d3f507a9c2c90c1f01b81f7fa0bd56ee4811a94d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Tue, 9 Jun 2009 15:34:21 +0000
Subject: [PATCH]  - docstrings update, formatting

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27480 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/tests/testERP5Interfaces.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/tests/testERP5Interfaces.py b/product/ERP5/tests/testERP5Interfaces.py
index 58dd2e049b..4fa67bccc7 100644
--- a/product/ERP5/tests/testERP5Interfaces.py
+++ b/product/ERP5/tests/testERP5Interfaces.py
@@ -51,9 +51,10 @@ implements_tuple_list = [
 ]
 
 class TestERP5Interfaces(ERP5TypeTestCase):
-  """Test that every class implements interfaces properly"""
+  """Tests implementation of interfaces"""
 
 def makeTestMethod(document, interface):
+  """Common method which checks if documents implements interface"""
   def testMethod(self):
     _temp = __import__('Products.ERP5Type.Document.%s' % document, globals(),
         locals(), ['%s' % document])
@@ -67,12 +68,15 @@ def makeTestMethod(document, interface):
   return testMethod
 
 def addTestMethodDynamically():
+  """Creates test methods on the fly 
+
+    Uses naming test_TradeCondition_implements_ITransformation
+    It is possible to use --run_only on those dynamically generated methods"""
   for document, interface in implements_tuple_list:
     method_name = 'test_%s_implements_%s' % (document, interface)
     method = makeTestMethod(document, interface)
     setattr(TestERP5Interfaces, method_name, method)
 
-
 addTestMethodDynamically()
 
 def test_suite():
-- 
2.30.9