NOJIRA more restructuring
This commit is contained in:
0
test/__init__.py
Normal file
0
test/__init__.py
Normal file
16
test/test_anonymize_name.py
Normal file
16
test/test_anonymize_name.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