Skip to main content

A collection of cheater methods for the Django TestCase.

Project description


BaseTestCase is a collection of cheater methods for the Django TestCase. They are extensions of the Django TestCase. These came about as a result of learning and using TDD.

There are four different classes:

  1. ModelTestCase
  2. FormTestCase
  3. ViewTestCase
  4. FunctionalTestCase
    • For use with Selenium.
    • Origins and some methods from "Obey The Testing Goat".


To install: pip install django-basetestcase

To use in a test:

from basetestcase import ModelTestCase

Please check out the source code for details. Documentation will be coming bit by bit. Any suggestions or issues, please let me know.


This was built using Python 3.7 and Django 2.1.7. Anything prior to that has no guarantees.

What's new?

FormTestCase Now has a formset_error_test. FunctionalTestCase now accepts xpath.

Project details

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_basetestcase-1.1.8-py3-none-any.whl (9.4 kB) Copy SHA256 hash SHA256 Wheel py3
django-basetestcase-1.1.8.tar.gz (7.0 kB) Copy SHA256 hash SHA256 Source None

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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page