Esempio n. 1
0
def test_empty_dir():
    # Prehashed sum with openssl, file contents "12345"
    with pytest.raises(MinidException):
        MinidClient.compute_checksum(EMPTY_DIR)
Esempio n. 2
0
def test_compute_checksum():
    # Prehashed sum with openssl, file contents "12345"
    checksum = MinidClient.compute_checksum(TEST_CHECKSUM_FILE)
    assert checksum == TEST_CHECKSUM_VALUE