@patch('pypdfocr.pypdfocr_tesseract.PyTesseract._is_version_uptodate')
    @patch('pypdfocr.pypdfocr_tesseract.os.name')
    @patch('pypdfocr.pypdfocr_tesseract.os.path.exists')
    def test_force_Nt(self, mock_os_path_exists, mock_os_name, mock_uptodate, capsys):
        mock_os_name.__str__.return_value = 'nt'
        p = P.PyTesseract({})
        assert ('tesseract.exe' in p.binary)

        mock_os_path_exists.return_value = True 
        mock_uptodate.return_value = (True,"")
        # force a bad tesseract on windows
        p.binary = "blah"
        print("here")
        with pytest.raises(SystemExit):
            p.make_hocr_from_pnm('blah.tiff')
dataset/ETHPy150Open virantha/pypdfocr/test/test_tesseract.py/TestTesseract.test_force_Nt/original