` `assert基本类型
theeasytype的Python项目详细描述
用于the断言基本类型的断言库。
API
- int
- float
- str
- dict
- list
- tuple
- set
用法
fromtheimportexpectimporttheeasytypeexpect.use(theeasytype)expect(1).to.be.intexpect(1.1).to.be.floatexpect("").to.be.strexpect({}).to.be.dictexpect([]).to.be.listexpect(()).to.be.tupleexpect(set()).to.be.set