Test added

This commit is contained in:
Lukas Klass 2020-09-09 16:59:55 +02:00
parent 7a7ceb936d
commit 99adef1da7
1 changed files with 10 additions and 0 deletions

10
tests/test_esbo_etc.py Normal file
View File

@ -0,0 +1,10 @@
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)