Skip to content
Snippets Groups Projects
Commit 498b51ac authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

TST: fix name

parent 8d930813
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ from tempfile import NamedTemporaryFile
import numpy as np
import pandas as pd
from caosadvancedtools.table_importer import (XLS_Importer, name_converter,
from caosadvancedtools.table_importer import (XLS_Importer, assure_name_format,
yes_no_converter)
......@@ -39,9 +39,10 @@ class ConverterTest(unittest.TestCase):
self.assertRaises(ValueError, yes_no_converter, "True")
self.assertRaises(ValueError, yes_no_converter, "true")
def test_name_converter(self):
self.assertEqual(name_converter("Müstermann, Max"), "Müstermann, Max")
self.assertRaises(ValueError, name_converter, "Max Mustermann")
def test_assure_name_format(self):
self.assertEqual(assure_name_format("Müstermann, Max"),
"Müstermann, Max")
self.assertRaises(ValueError, assure_name_format, "Max Mustermann")
class XLS_ImporterTest(unittest.TestCase):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment