http://mmgen-wallet.i2p/project/mmgen/mmgen-wallet/src/775e596ddad05e33ff63e3b6966f1895f3682077/test/include/pexpect.py
:',str(preset)+'\n',regex=True) def written_to_file(self,desc,overwrite_unlikely=False,query='Overwrite? '): s1 = f'{desc} written to file ' s2 = query + "Type uppercase 'YES' to confirm: " ret = self.expect(([s1,s2],s1)[overwrite_unlikely]) if ret == 1: self.send('YES\n') return self.expect_getend("Overwriting file '").rstrip("'") self.expect(NL,nonl=True) outfile = self.p.before.strip().strip("'") if cfg.debug_pexpect: rmsg(f'Outfile [{outfile}]') vmsg('{} file:...