Skip to main content

Expects plugin for Doublex test doubles assertions

Project description

Latest version Number of PyPI downloads https://secure.travis-ci.org/jaimegildesagredo/doublex-expects.png?branch=master

Doublex-expects is an Expects plugin for Doublex test doubles assertions.

Usage

Just import the expect callable and start writing assertions for test doubles.

from expects import expect
from doublex import Spy

my_spy = Spy()

expect(func=my_spy.method).to.have.been.called

expect(func=my_spy.method).to.have.not_been.called

expect(func=my_spy.method).to.have.been.called.once

expect(func=my_spy.method).to.have.been.called.exactly(2)

Installation

You can install the last stable release of Doublex-Expects from PyPI using pip or easy_install.

$ pip install doublex-expects

Also you can install the latest sources from Github.

$ pip install -e git+git://github.com/jaimegildesagredo/doublex-expects.git#egg=doublex-expects

Specs

To run the specs you should install the testing requirements and then run mamba.

$ pip install -r test-requirements.txt
$ mamba

License

The Doublex-Expects is released under the Apache2 license.

Project details


Download files

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

Files for doublex-expects, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size doublex-expects-0.1.0.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

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