summaryrefslogtreecommitdiff
path: root/login_test.py
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2016-07-09 21:36:50 +0200
committerYves Fischer <yvesf-git@xapek.org>2016-07-09 21:48:26 +0200
commit045f9bc3b68f03d88b9623a0893eeca3ff1ff372 (patch)
tree043d0b4e261f8f41ae74938f210e5aa542652f9a /login_test.py
parent5d6a8c8939382c4c6fb9f3205a865606a28c9b42 (diff)
downloadauth-xmppmessage-045f9bc3b68f03d88b9623a0893eeca3ff1ff372.tar.gz
auth-xmppmessage-045f9bc3b68f03d88b9623a0893eeca3ff1ff372.zip
implement server for nginx auth_request
Diffstat (limited to 'login_test.py')
-rwxr-xr-xlogin_test.py10
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")