mirror of
https://github.com/Casvt/MIND.git
synced 2026-04-03 03:00:22 -04:00
Added tests
This commit is contained in:
10
tests/security_test.py
Normal file
10
tests/security_test.py
Normal file
@@ -0,0 +1,10 @@
|
||||
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))
|
||||
|
||||
Reference in New Issue
Block a user