This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
Django Test Helper

Django Test Helper provides some utility functions when testing Django applications


Run `pip install django-test-helper`


A context that provides a Django test Client instance with an authenticated user. It takes a username and a password as arguments.

from django.test import TestCase
from test_helper.utils import authenticated_user
from django.core.urlresolvers import reverse

class MyTest(TestCase):
def test_protected_view(self):
with autenticated_user('username', 'pass') as client:
response = client.get(reverse('protected_view')
self.assertEqual(response.status, 200)

Creates on-the-fly an image and returns it. It takes a size tuple and a color rgb tuple.

from django.test import TestCase
from test_helper.utils import image_file

class MyTest(TestCase):
def test_form(self):
data = {
'first_name': 'John',
'last_name': 'Smith',
image = image_file(size=(100, 100),
color=(128, 128, 128))
files = {
'avatar': image,
form = ProfileForm(data, files)
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date (6.8 kB) Copy SHA256 Checksum SHA256 Source Nov 2, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting