Improved Fexpect now on pypi

Improved Fexpect now on pypi,第1张

Improved Fexpect now on pypi

Improved Fexpect now on pypi

Saturday 07 April 2012

I got nice feedback on fexpect from some users. Michael Ivanov wrote that he uses fexpect for end-to-end testing of the localwiki Ubuntu packages on EC2 instances. He suggested to dynamically link pexpect. His fix has now been integrated in the new fexpect github repository. The code now feels mature enough and has been published on pypi, so you can now easily install it with your favourite python package manager;

pip install fexpect
easy_install fexpect

or list it as a requirement in you fabric project. To import the newly packaged version:

from ilogue.fexpect import expect, expecting, run

prompts = []
prompts += expect('What is your name?','Jasper')
prompts += expect('Where do you live?','Frankfurt')

with expecting(prompts):
    run('command')

Enjoy!

Comments? Write me an email or discuss on facebook, google+ or twitter.

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/2087721.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-07-22
下一篇 2022-07-22

发表评论

登录后才能评论

评论列表(0条)

保存