summaryrefslogtreecommitdiff
path: root/rtemsspec/tests/test_util.py
diff options
context:
space:
mode:
Diffstat (limited to 'rtemsspec/tests/test_util.py')
-rw-r--r--rtemsspec/tests/test_util.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/rtemsspec/tests/test_util.py b/rtemsspec/tests/test_util.py
index 0873dc5e..35d484d0 100644
--- a/rtemsspec/tests/test_util.py
+++ b/rtemsspec/tests/test_util.py
@@ -27,8 +27,8 @@
import os
import logging
-from rtemsspec.util import copy_files, create_argument_parser, init_logging, \
- load_config, run_command
+from rtemsspec.util import copy_files, create_argument_parser, base64_to_hex, \
+ init_logging, load_config, run_command
from rtemsspec.tests.util import get_and_clear_log
@@ -41,6 +41,10 @@ def test_copy_files(tmpdir):
assert os.path.exists(os.path.join(tmpdir, filename))
+def test_base64_to_hex():
+ assert base64_to_hex("ABCD") == "001083"
+
+
def test_load_config():
filename = os.path.join(os.path.dirname(__file__), "config", "a.yml")
config = load_config(filename)