Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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)
Release History

Release History

This version
History Node

1.0

History Node

1.0-rc2

History Node

1.0-rc1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
lancelot-1.0-py2.5.egg (86.1 kB) Copy SHA256 Checksum SHA256 2.5 Egg Mar 11, 2009
lancelot-1.0-py3.0.zip (43.5 kB) Copy SHA256 Checksum SHA256 Source Mar 11, 2009

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting