def test_tesseract_presence(self, capsys):
        p = P.PyTesseract({})
        p.binary = "tesserac" # Misspell it and make sure we get an error
        with pytest.raises(SystemExit):
            p._is_version_uptodate()
        out, err = capsys.readouterr()
        assert p.msgs['TS_MISSING'] in out
dataset/ETHPy150Open virantha/pypdfocr/test/test_tesseract.py/TestTesseract.test_tesseract_presence/original