Passed
Push — mvp ( 8838f1...7a4c00 )
by Yohann
01:13
created

test_hash   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A HashTestCase.test_sha_512() 0 2 1
1
from src.security import sha512
2
import unittest
3
4
right = 'ee26b0dd4af7e749aa1a8ee3c10ae9923f618980772e473f8819a5d4940e0db' \
5
        '27ac185f8a0e1d5f84f88bc887fd67b143732c304cc5fa9ad8e6f57f50028a8ff'
6
7
8
class HashTestCase(unittest.TestCase):
9
    def test_sha_512(self):
10
        self.assertEqual(sha512('test'), right)
11
12
13
if __name__ == '__main__':
14
    unittest.main()
15