skip to navigation
skip to content

lancelot 1.0

A behaviour-driven specification and verification library

lancelot allows class and function behaviour to be specifed and verified using a DSL-like syntax, for example:

@verifiable
def can_peek_and_pop_after_push():
    spec = Spec(Stack, given=new_stack)
    spec.when(spec.push(value='a'))
    spec.then(spec.peek()).should_be('a')
    spec.then(spec.pop()).should_be('a')
    spec.then(spec.peek()).should_raise(IndexError)
    spec.then(spec.pop()).should_raise(IndexError)
 
File Type Py Version Uploaded on Size
lancelot-1.0-py2.5.egg (md5)
Python2.5 version!
Python Egg 2.5 2009-03-11 84KB
lancelot-1.0-py3.0.zip (md5)
Python3 version!
Source 2009-03-11 42KB