blob: 944e5b6a2f1f24c86aa4ecc79d2372fd3f5691e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
"""Test cases for some methods in user_session.py"""
import unittest
from gn2.wqflask.user_session import verify_cookie
class TestUserSession(unittest.TestCase):
def test_verify_cookie(self):
"""
Test cookie verification
"""
self.assertEqual(
"3f4c1dbf-5b56-4260-87d6-f35445bda37e",
verify_cookie(("3f4c1dbf-5b56-4260-87d6-"
"f35445bda37e:af4fcf5eace9e7c864ce")))
|