summaryrefslogtreecommitdiff
path: root/login_test.py
blob: 4557de8a642030b2d906ab36646b24bd0c7bb438 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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()