summaryrefslogtreecommitdiff
path: root/login_test.py
blob: 2bdbef3992cc663f987f1e9084a75989b354f13d (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 functions


class TestStringMethods(unittest.TestCase):
    def test_normalize(self):
        self.assertEqual(functions._normalize_token("A4-B4-C5"),
            "A4B4C5")
        self.assertEqual(functions._normalize_token("a4-b4-c5"),
            "A4B4C5")
        self.assertEqual(functions._normalize_token("a4b4c5"),
            "A4B4C5")
        self.assertEqual(functions._normalize_token("A4B4C5"),
            "A4B4C5")


if __name__ == '__main__':
    unittest.main()