NOJIRA restructed into separate model files
This commit is contained in:
16
test.py
Normal file
16
test.py
Normal 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()
|
||||
Reference in New Issue
Block a user