tests.py

Test the encryption and hash functions

Class definitions:

class core.encryption.tests.Encryption(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

Test cases definitions for the encryption functions

check_encryption()[source]

Check the AES256CBC encryption

check_hash()[source]

Check the hash/hmac functions

check_random()[source]

Check that the random functions can be called without exceptions

test_encryption_functions()[source]

Runs the checks