NOJIRA restructed into separate model files

This commit is contained in:
2021-09-15 15:47:30 +02:00
parent 7f62cf38ae
commit 5aed069992
6 changed files with 89 additions and 63 deletions

16
test.py Normal file
View File

@@ -0,0 +1,16 @@
import unittest
from main import _anonymize_name
class TestMain(unittest.TestCase):
def test_anonymize_name(self):
given = "Alice Bobbington Charlie"
expected = "Alice B C"
actual = _anonymize_name(given)
self.assertEqual(expected, actual)
if __name__ == '__main__':
unittest.main()