Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

A TestCaseMixin utility.

Project Description


.. image::

django-testcase provides a TestCase mixin to provide new useful functions for Django tests.

Supports Django 1.10 and later, only with Python 3.4 and later.



$ pip install django-testcase

Basic usage

Simply subclass it in a ``TestCase``::

from django.test import TestCase
from django_testcase import TestCaseMixin

class LoginViewTestCase(TestCaseMixin, TestCase):
def test_login(self):

Available methods


Asserting code quality


$ python quality

Packaging for PyPI distribution


$ python package

The build will happen if the repository passes the quality tests and is clean: no untracked files are found. If not, you can see what's wrong with ``git clean -dfx --dry-run`` and remove or track and commit those files.

Builds will be available at ``dist``, in wheel and source.


Pull requests are welcome.

Release history Release notifications

This version
History Node


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
django_testcase-0.1-py3-none-any.whl (4.6 kB) Copy SHA256 hash SHA256 Wheel py3 Aug 11, 2017
django-testcase-0.1.tar.gz (3.8 kB) Copy SHA256 hash SHA256 Source None Aug 11, 2017

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