Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #7978 -- Modified the contrib.sites tests to guarantee the init…

…ial conditions of the test match meet the requirements of the test. Thanks to Evan Schulz for the report and fix.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8160 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f423dde34aa0e97dd6ae3a79d4b8f7e4991fb0a2 1 parent 99e34c1
Russell Keith-Magee authored July 31, 2008

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  django/contrib/sites/tests.py
5  django/contrib/sites/tests.py
... ...
@@ -1,6 +1,9 @@
1 1
 """
2  
->>> # Make sure that get_current() does not return a deleted Site object.
3 2
 >>> from django.contrib.sites.models import Site
  3
+>>> from django.conf import settings
  4
+>>> Site(id=settings.SITE_ID, domain="example.com", name="example.com").save()
  5
+ 	
  6
+>>> # Make sure that get_current() does not return a deleted Site object.
4 7
 >>> s = Site.objects.get_current()
5 8
 >>> isinstance(s, Site)
6 9
 True

0 notes on commit f423dde

Please sign in to comment.
Something went wrong with that request. Please try again.