diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2016-07-09 21:36:50 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2016-07-09 21:48:26 +0200 |
commit | 045f9bc3b68f03d88b9623a0893eeca3ff1ff372 (patch) | |
tree | 043d0b4e261f8f41ae74938f210e5aa542652f9a /login_test.py | |
parent | 5d6a8c8939382c4c6fb9f3205a865606a28c9b42 (diff) | |
download | auth-xmppmessage-045f9bc3b68f03d88b9623a0893eeca3ff1ff372.tar.gz auth-xmppmessage-045f9bc3b68f03d88b9623a0893eeca3ff1ff372.zip |
implement server for nginx auth_request
Diffstat (limited to 'login_test.py')
-rwxr-xr-x | login_test.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/login_test.py b/login_test.py index 4557de8..2bdbef3 100755 --- a/login_test.py +++ b/login_test.py @@ -1,17 +1,17 @@ #!/usr/bin/env python3 import unittest -import login +import functions class TestStringMethods(unittest.TestCase): def test_normalize(self): - self.assertEqual(login.normalize_token("A4-B4-C5"), + self.assertEqual(functions._normalize_token("A4-B4-C5"), "A4B4C5") - self.assertEqual(login.normalize_token("a4-b4-c5"), + self.assertEqual(functions._normalize_token("a4-b4-c5"), "A4B4C5") - self.assertEqual(login.normalize_token("a4b4c5"), + self.assertEqual(functions._normalize_token("a4b4c5"), "A4B4C5") - self.assertEqual(login.normalize_token("A4B4C5"), + self.assertEqual(functions._normalize_token("A4B4C5"), "A4B4C5") |