django-attest

0.9.1 BSD License    
  UNRATED

  295 downloads

Provides Django specific testing helpers to Attest

description

download

specs

changelog

django-attest is a Django app that provides the same testing helper functionality as Django's :class:`django.test.TestCase` wrapper of :class:`unittest.TestCase`.

django_attest.TestContext provides the same functionality as subclassing django.test.TestCase, and django_attest.TransactionTestContext does the same as django.test.TransactionTestCase.

Both contexts provide a django.test.TestClient object (normally accessed via self.client in django.test.TestCase tests), which can be used to make requests to views for testing.

Installation:

 Just run python setup.py install or pip install < tar.gz >.
 You're done! (There's no reason to add it to your INSTALLED_APPS)

Usage:

The functionality is implemented as a context for tests:

If you want to specify fixtures, urls, a client_class, or multi_db, simply pass in these options when creating the :class:`django_tables.TestContext` object:
read more   
Last updated on September 25th, 2012

#testing helpers #Django Attest #Django #Attest #testing #helpers

0 User reviews so far.

SUBMIT