From dd4f295a0c0ca578922bddb9da36f87f5d7ad1b4 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Thu, 5 Nov 2015 21:54:27 +0100 Subject: stateless version --- login_test.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 login_test.py (limited to 'login_test.py') 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() + -- cgit v1.2.1