Mercurial Hosting > traffic-intelligence
comparison 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 |
comparison
equal
deleted
inserted
replaced
246:583a2c4622f9 | 247:8f0ed138d373 |
---|---|
167 else: | 167 else: |
168 indicatorMap[k] = [v] | 168 indicatorMap[k] = [v] |
169 for k in indicatorMap.keys(): | 169 for k in indicatorMap.keys(): |
170 indicatorMap[k] = combinationFunction(indicatorMap[k]) | 170 indicatorMap[k] = combinationFunction(indicatorMap[k]) |
171 return indicatorMap | 171 return indicatorMap |
172 | |
173 if __name__ == "__main__": | |
174 import doctest | |
175 import unittest | |
176 suite = doctest.DocFileSuite('tests/indicators.txt') | |
177 unittest.TextTestRunner().run(suite) | |
178 # #doctest.testmod() | |
179 # #doctest.testfile("example.txt") |