Skip to main content

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


Download files

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

Source Distribution

lancelot-1.0-py3.0.zip (43.5 kB view details)

Uploaded Source

Built Distribution

lancelot-1.0-py2.5.egg (86.1 kB view details)

Uploaded Source

File details

Details for the file lancelot-1.0-py3.0.zip.

File metadata

  • Download URL: lancelot-1.0-py3.0.zip
  • Upload date:
  • Size: 43.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lancelot-1.0-py3.0.zip
Algorithm Hash digest
SHA256 9d6933865f589e10a88fa65b81b7f64484a38b54b4c7b74fd480599b480b7d2a
MD5 b440d17fc9a805861fc0398da98165c7
BLAKE2b-256 39a029f54a9853bab5d5b9dbebf400aaf0abb5201547645dcb99fa85882136c0

See more details on using hashes here.

File details

Details for the file lancelot-1.0-py2.5.egg.

File metadata

  • Download URL: lancelot-1.0-py2.5.egg
  • Upload date:
  • Size: 86.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lancelot-1.0-py2.5.egg
Algorithm Hash digest
SHA256 185d68b9186cb001550dcf833e08a7f8c7069117a25be897ee07b08f37771473
MD5 d382b706f8338b8e387290185259e69a
BLAKE2b-256 2970a51964600616b23c985d096ee6333d3d9de518ef53deab0664bbd6a35779

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page