Skip to main content
Help us improve Python packaging – donate today!

Jasmine-style assertions for unittest

Project Description

Chamomile makes it more pleasant to make assertions inside your Python unit tests. It borrows heavily from Jasmine’s assertion syntax. Take a look:

import chamomile

class ExampleTest(chamomile.Test):
    def test_simple_assertions(self):
        self.expect(12).to_equal(12)
        self.expect(False).to_not_be(0)

        with self.expect(ZeroDivsionError):
            4 / 0

You can easily browse the full list of available assertions in the source.

Release history Release notifications

This version
History Node

1.0.1

History Node

1.0.0

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
chamomile-1.0.1.tar.gz (4.2 kB) Copy SHA256 hash SHA256 Source None Jan 26, 2013

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