skip to navigation
skip to content

Not Logged In

Requires 0.0.2

BDD testing for Python

Latest Version: 0.0.3

https://travis-ci.org/eugene-eeo/requires.png?branch=master

An assertion test generator for Python meant for use with nose.py or something that uses assert as a method for running tests. It uses function chaining to achieve very high readability and make BDD less tedious.

from requires.expect import expect

expect([]).to.be.a(list)
expect([]).to.be.empty()

expect(2).to.be.within(1,3)
expect(list).to.have.method('append')

Requires is still work-in-progress and it's API may change at anytime. However the changes shouldn't be overly drastic. Once I have settled down to an API spec I will upload the package to PyPI and the changes should then be either bugfixes or mainly additions and optimizations.

You can now download the package with PIP, and it is available under the name Requires. Feel free to require it within any of your unit test suites. You can easily install the package with the following command:

$ pip install Requires
 
File Type Py Version Uploaded on Size
Requires-0.0.2.tar.gz (md5) Source 2014-01-28 5KB
  • Downloads (All Versions):
  • 9 downloads in the last day
  • 57 downloads in the last week
  • 319 downloads in the last month