Skip to main content

Simple assertion library with verbose error messages

Project description

Simple python assertion library with verbose output.

tests Travis CI Build Status Code Coverage Code Health
package Pypi Version Supported Python Versions

my assert is a simple assertion library designed to give your assertion statements a more user friendly output.

It currently accommodates two main implementations:

Inheriting from the AllAssertions class

You can superclass the AllAssertions class to provide direct access to the assertion statements through self.

from myassert import AllAssertions

class MyNewClass(AllAssertions):

    def my_function(foo, bar):
        self.assert_equal(foo, bar)

All methods inside AllAssertions are static, so it requires no initialisation.

Importing the function directly

You can also import the functions directly:

from myassert.assertions import assert_equal

def my_function(foo, bar):
    assert_equal(foo, bar)

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 my-assert, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size my-assert-0.0.3.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page