diff options
Diffstat (limited to 'login_test.py')
-rwxr-xr-x | login_test.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/login_test.py b/login_test.py new file mode 100755 index 0000000..4557de8 --- /dev/null +++ b/login_test.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 +import unittest +import login + + +class TestStringMethods(unittest.TestCase): + def test_normalize(self): + self.assertEqual(login.normalize_token("A4-B4-C5"), + "A4B4C5") + self.assertEqual(login.normalize_token("a4-b4-c5"), + "A4B4C5") + self.assertEqual(login.normalize_token("a4b4c5"), + "A4B4C5") + self.assertEqual(login.normalize_token("A4B4C5"), + "A4B4C5") + + +if __name__ == '__main__': + unittest.main() + |