示例#1
0
文件: maybe_spec.py 项目: tek/tryp.py
 def map_n(self):
     m = Just((1, 2, 3, 4))
     m.map4(lambda a, b, c, d: b + d).should.contain(6)
     m.map5.when.called_with(lambda a: a).should.throw(TypeError)