Metadata-Version: 1.0
Name: should
Version: 0.4.5
Summary: assert with should
Home-page: https://github.com/Ralph-Wang/should
Author: Ralph-Wang
Author-email: ralph.wang1024@gmail.com
License: MIT
Description: should
        ----------------
        
        .. image:: https://img.shields.io/travis/Ralph-Wang/should.svg?style-flat-square
            :target: https://travis-ci.org/Ralph-Wang/should
        .. image:: https://img.shields.io/coveralls/Ralph-Wang/should.svg?style-flat-square
            :target: https://coveralls.io/r/Ralph-Wang/should
        
        安装:
        ----------------
        
        ::
        
            pip install should
        
        
        使用方法:
        ----------------
        
        
        ::
        
            from should import it
        
            # 一般的断言
            it(1).should.be.int
            it({}).should.be.no.ok
            it(2).should.be.equal(2)
            it(10).should.be.no.equal(8)
            it([1,2,3]).should.contain(3)
        
            # with 版异常断言, 不支持 no, 在 0.5 版本会被删除
            with should.raises(ValueError):
                int('abc')
        
            # lambda 版异常断言
            it(lambda: int('abc')).should.throw(ValueError)
            it(lambda: int('123')).should.no.throw(ValueError)
        
        
        - 更多例子请参考 test.py_
        
        .. _test.py: https://github.com/Ralph-Wang/should/blob/master/test.py
        
        
        License
        ----------------
        
        The MIT License
        
        
        Change Log
        ----------------
        v0.4.5
        ~~~~~~~~~~~~~~~~
        
        * 增加 `match` 接口, 进行正则匹配断言
        * 增加 `empty` 属性, 直接判断容器或序列是否为空
        * 只有连接词, be, have 会出现在 Assertion Error 中
        * `throw` 接口支持断言 throw 信息
        
        v0.4.4
        ~~~~~~~~~~~~~~~~
        
        * 安装失败修复
        
        v0.4.3
        ~~~~~~~~~~~~~~~~
        
        * 类型断言如 `it(1).should.be.int` 支持所有内建类型
        * 添加 `instanceof` 断言, 支持其它类型或弱类型断言
        * 链式调用 'be'/'have' 时, Error 信息正确显示 have 和 be
        
Keywords: assert,should,test,BDD
Platform: UNKNOWN
