def test_tiff_file_check(self, capsys):
        p = P.PyTesseract({})
        with pytest.raises(SystemExit):
            p.make_hocr_from_pnm("DUMMY_NOTPRESENT.tiff")
        out, err = capsys.readouterr()
        assert out in p.msgs['TS_img_MISSING']
dataset/ETHPy150Open virantha/pypdfocr/test/test_tesseract.py/TestTesseract.test_tiff_file_check/swapped operands of `in`