freezer.tests.unit.utils.test_checksum
Module¶freezer.tests.unit.utils.test_checksum.
TestChecksum
(methodName='runTest')¶Bases: unittest.case.TestCase
setUp
()¶test_compare_dir_match
(*args, **keywargs)¶compute checksum for a directory and it should match
test_compare_dir_not_match
(*args, **keywargs)¶compute checksum for a directory and it should not match
test_compare_file_match
(*args, **keywargs)¶compute checksum for a file and it should match
test_compare_file_not_match
(*args, **keywargs)¶compute checksum for a file and it should not match
test_compute_dir
(*args, **keywargs)¶Test hashing a directory
test_compute_file
(*args, **keywargs)¶Test compute the checksum of a file
test_get_hash_files
(*args, **kwargs)¶Test calculating the hash of a file
test_get_hash_multi
(*args, **keywargs)¶Calculate the hash of files in a directory
test_hello_world_checksum_md5
()¶Test calculating the md5 of a string
test_hello_world_checksum_sha256
()¶Test calculating the sha256 of a string
test_unknown_hasher_type
()¶Test un-known hash algorithm
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.