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