summaryrefslogtreecommitdiff
path: root/login_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'login_test.py')
-rwxr-xr-xlogin_test.py20
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()
+