import re import unittest from urlparse import urlsplit, urlunsplit from django.http import QueryDict from django.db import transaction from django.core import mail from django.core.management import call_command from django.test import _doctest as doctest from django.test.client import Client normalize_long_ints = lambda s: re.sub(r'(?