new test for convert helpers
@@ -55,6 +55,13 @@ def test_converterhelper_seconds():
assert 'm' == unit
+def test_converterhelper_seconds_ms():
+ from moler.util.converterhelper import ConverterHelper
+ converter = ConverterHelper.get_converter_helper()
+ value = converter.to_seconds(0.408, "ms")
+ assert pytest.approx(0.000408, 0.001) == value
+
+
def test_converterhelper_seconds_wrong_unit():
from moler.util.converterhelper import ConverterHelper
converter = ConverterHelper.get_converter_helper()
