The freezer.tests.unit.utils.test_checksum Module

class freezer.tests.unit.utils.test_checksum.TestChecksum(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]
test_compare_dir_match(*args, **keywargs)[source]

compute checksum for a directory and it should match

test_compare_dir_not_match(*args, **keywargs)[source]

compute checksum for a directory and it should not match

test_compare_file_match(*args, **keywargs)[source]

compute checksum for a file and it should match

test_compare_file_not_match(*args, **keywargs)[source]

compute checksum for a file and it should not match

test_compute_dir(*args, **keywargs)[source]

Test hashing a directory

test_compute_file(*args, **keywargs)[source]

Test compute the checksum of a file

test_get_hash_files(*args, **kwargs)[source]

Test calculating the hash of a file

test_get_hash_multi(*args, **keywargs)[source]

Calculate the hash of files in a directory

test_hello_world_checksum_md5()[source]

Test calculating the md5 of a string

test_hello_world_checksum_sha256()[source]

Test calculating the sha256 of a string

test_unknown_hasher_type()[source]

Test un-known hash algorithm