8 lines
306 B
Python
8 lines
306 B
Python
import krypto.hashes
|
|
import unittest
|
|
class TestHash(unittest.TestCase):
|
|
|
|
def teste_hashMod(self):
|
|
first_param = krypto.hashes.hashMod('Hi'.encode('utf-8'))
|
|
second_param = krypto.hashes.hashMod('Hi'.encode('utf-8'))
|
|
self.assertEquals(first_param, second_param, 'fehler ungleich') |