diff python/indicators.py @ 247:8f0ed138d373

moved the tests for indicators
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 18 Jul 2012 02:54:02 -0400
parents 5027c174ab90
children 7a3bf04cf016
line wrap: on
line diff
--- a/python/indicators.py	Tue Jul 17 16:28:24 2012 -0400
+++ b/python/indicators.py	Wed Jul 18 02:54:02 2012 -0400
@@ -169,3 +169,11 @@
     for k in indicatorMap.keys():
         indicatorMap[k] = combinationFunction(indicatorMap[k])
     return indicatorMap
+
+if __name__ == "__main__":
+    import doctest
+    import unittest
+    suite = doctest.DocFileSuite('tests/indicators.txt')
+    unittest.TextTestRunner().run(suite)
+#     #doctest.testmod()
+#     #doctest.testfile("example.txt")