类服务器规范期望匹配器库
server-expects的Python项目详细描述
服务器要求为Expects断言库提供类似Serverpec的匹配器库。它为测试服务器基础设施提供了匹配器。
安装
您可以使用pip或easy_install安装pypi的最后一个稳定版本。
$ pip install server-expects
您还可以从github安装最新的源代码。
$ pip install -e git+git://github.com/jaimegildesagredo/server-expects.git#egg=server-expects
用法
只要导入expectcallable,服务器就需要匹配器并开始编写断言。
fromexpectsimportexpectfromserver_expectsimport*expect('python').to(be_installed)
匹配器
待办事项
规格
要运行规范,您应该安装测试需求,然后运行mamba。
$ python setup.py develop $ pip install -r test-requirements.txt $ mamba
许可证
服务器期望在Apache2 license下发布。