diff --git django contrib sites tests py django contrib sites tests py

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
diff --git a/django/contrib/sites/tests.py b/django/contrib/sites/tests.py
--- a/django/contrib/sites/tests.py
+++ b/django/contrib/sites/tests.py
@@ -9,6 +9,7 @@
True
>>> s.delete()
+>>> Site.objects.clear_cache()
>>> Site.objects.get_current()
Traceback (most recent call last):
...
@@ -23,6 +24,7 @@ u"example.com"
>>> s2 = Site.objects.get(id=settings.SITE_ID)
>>> s2.name = "Example site"
>>> s2.save()
+>>> Site.objects.clear_cache()
>>> site = Site.objects.get_current()
>>> site.name
u"Example site"