Skip to main content

Run tabular unit tests

Project description


Run tabular unit tests.


It has been tested with unittest.TestCase. Basically it will work with any class that implements:

  • assertEqual(x, y)
  • assertRaises(t) with __enter__ and __exit__ handlers for with.


import unittest
import testcase

def foo(x, y):
    return x / y

class FooTest(unittest.TestCase):
    def test_foo(self):
        testcase.runall(self, foo, [
                name='1 / 1 = 1',
                args=(1, 1),
                name='raises ZeroDivisionError',
                args=(1, 0),

if __name__ == '__main__':

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

testcase-0.1.0.tar.gz (2.6 kB view hashes)

Uploaded source

Built Distribution

testcase-0.1.0-py3-none-any.whl (2.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page