def test_apply_mask_to_image(test_image):
img = cv2.imread(test_image["lenna"])
mask = cv2.imread(test_image["lenna_mask"], 0)
masked = apply_mask_to_image(img, mask)
assert np.count_nonzero(masked == 0) == 416754
assert np.count_nonzero(masked != 0) == 369678
416754 and 369678 is too big for a mask, this looks a 3 channel matrix
416754 and 369678 is too big for a mask, this looks a 3 channel matrix