Skip to content

the-py/the-easytype

Repository files navigation

python basic types better assertion

An assertion lib for the to assert basic type.

http://the-py.github.io/the-easytype

Build Status tested on 2.7, 3.2, 3.3

API

  • int
  • float
  • str
  • dict
  • list
  • tuple
  • set

Usage

from the import expect
import theeasytype

expect.use(theeasytype)

expect(1).to.be.int
expect(1.1).to.be.float
expect("").to.be.str
expect({}).to.be.dict
expect([]).to.be.list
expect(()).to.be.tuple
expect(set()).to.be.set

About

assert python basic types.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages