[Erp5-report] r8486 - /erp5/trunk/products/ERP5/tests/testAmount.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jul 18 15:28:03 CEST 2006


Author: jerome
Date: Tue Jul 18 15:28:02 2006
New Revision: 8486

URL: http://svn.erp5.org?rev=8486&view=rev
Log:
makeSuite using TestAmount class

Modified:
    erp5/trunk/products/ERP5/tests/testAmount.py

Modified: erp5/trunk/products/ERP5/tests/testAmount.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testAmount.py?rev=8486&r1=8485&r2=8486&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testAmount.py (original)
+++ erp5/trunk/products/ERP5/tests/testAmount.py Tue Jul 18 15:28:02 2006
@@ -27,7 +27,7 @@
 ##############################################################################
 import os, sys
 if __name__ == '__main__':
-    execfile(os.path.join(sys.path[0], 'framework.py'))
+  execfile(os.path.join(sys.path[0], 'framework.py'))
 
 # Needed in order to have a log file inside the current folder
 os.environ['EVENT_LOG_FILE'] = os.path.join(os.getcwd(), 'zLOG.log')
@@ -245,10 +245,10 @@
     sequence_list.play(self)
 
 if __name__ == '__main__':
-    framework()
+  framework()
 else:
-    import unittest
-    def test_suite():
-        suite = unittest.TestSuite()
-        suite.addTest(unittest.makeSuite(TestConstraint))
-        return suite
+  import unittest
+  def test_suite():
+    suite = unittest.TestSuite()
+    suite.addTest(unittest.makeSuite(TestAmount))
+    return suite




More information about the Erp5-report mailing list