mirror of
https://github.com/Casvt/MIND.git
synced 2026-04-03 03:00:22 -04:00
11 lines
308 B
Python
11 lines
308 B
Python
import unittest
|
|
|
|
from backend.base.helpers import generate_salt_hash, get_hash
|
|
|
|
|
|
class Test_Security(unittest.TestCase):
|
|
def test_hash(self):
|
|
for test_case in ('test', ''):
|
|
result = generate_salt_hash(test_case)
|
|
self.assertEqual(result[1], get_hash(result[0], test_case))
|