Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

A behaviour-driven specification and verification library

Project description

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)

Project details


Release history Release notifications

This version
History Node

1.0

History Node

1.0-rc2

History Node

1.0-rc1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
lancelot-1.0-py2.5.egg (86.1 kB) Copy SHA256 hash SHA256 Egg 2.5 Mar 11, 2009
lancelot-1.0-py3.0.zip (43.5 kB) Copy SHA256 hash SHA256 Source None Mar 11, 2009

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page