FAIL testAnonymousComment blog tests PostTestCase --------------------

 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
36
37
38
39
40
41
======================================================================
FAIL: testAnonymousComment (blog.tests.PostTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/j2a/projects/regular/byteflow/apps/blog/tests.py", line 79, in testAnonymousComment
self.assertEquals(len(mail.outbox), mailcount)
AssertionError: 2 != 5
======================================================================
FAIL: Doctest: django.contrib.sites.tests
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/j2a/.py/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 "/home/j2a/.py/lib/python2.5/site-packages/django/contrib/sites/tests.py", line 0, in tests
----------------------------------------------------------------------
File "/home/j2a/.py/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 "/home/j2a/.py/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 19.336s
FAILED (failures=2)