summaryrefslogtreecommitdiff
path: root/login_test.py
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2015-11-05 21:54:27 +0100
committerCharlie Root <root@www1.2.localnet.cc>2016-01-13 18:50:49 +0000
commitdd4f295a0c0ca578922bddb9da36f87f5d7ad1b4 (patch)
tree6d29d9fdf36af9a83da6e4d2bbc419beaab44933 /login_test.py
downloadauth-xmppmessage-dd4f295a0c0ca578922bddb9da36f87f5d7ad1b4.tar.gz
auth-xmppmessage-dd4f295a0c0ca578922bddb9da36f87f5d7ad1b4.zip
stateless version
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()
+