FAIL Doctest django contrib sites tests -------------------- ---------

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
..............................................F...
======================================================================
FAIL: Doctest: django.contrib.sites.tests
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/test/_doctest.py", line 2180, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for django.contrib.sites.tests
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/contrib/sites/tests.py", line 0, in tests
----------------------------------------------------------------------
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/contrib/sites/tests.py", line 12, in django.contrib.sites.tests
Failed example:
Site.objects.get_current()
Expected:
Traceback (most recent call last):
...
DoesNotExist: Site matching query does not exist.
Got:
<Site: example.com>
----------------------------------------------------------------------
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/contrib/sites/tests.py", line 27, in django.contrib.sites.tests
Failed example:
site.name
Expected:
u"Example site"
Got:
u'example.com'
----------------------------------------------------------------------
Ran 50 tests in 2.780s
FAILED (failures=1)
Destroying test database...