ESBO-ETC/tests/test_esbo_etc.py

11 lines
292 B
Python
Raw Permalink Normal View History

2020-09-09 16:59:55 +02:00
from unittest import TestCase
from esbo_etc import esbo_etc
import logging
class Testesbo_etc(TestCase):
def test_run(self):
etc = esbo_etc("tests/data/esbo-etc_defaults.xml", logging.WARNING)
res = etc.run()
self.assertAlmostEqual(res.value, 47.29125798685691)