mirror of
https://github.com/Casvt/MIND.git
synced 2026-02-19 11:54:46 -05:00
10 lines
278 B
Python
10 lines
278 B
Python
import unittest
|
|
|
|
from backend.security 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))
|
|
|