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