我正在使用django-nonrel。當我在我的項目上運行manage.py test
時,只包含一個非常簡單的用戶定義的測試,我在輸出中得到以下錯誤。有沒有人見過這個?我需要做些什麼來解決問題,以便test_shortcut_view (django.contrib.contenttypes.tests.ContentTypesTests)
成功?Django框架測試失敗
/src/google_appengine/google/appengine/datastore/datastore_stub_util.py:21: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
/src/google_appengine/google/appengine/api/memcache/__init__.py:31: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
import sha
/src/google_appengine/google/appengine/api/datastore_types.py:727: DeprecationWarning: object.__init__() takes no parameters
super(Email, self).__init__(self, email)
............................................s.................F.....................................................................................................
======================================================================
FAIL: test_shortcut_view (django.contrib.contenttypes.tests.ContentTypesTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/src/django/contrib/contenttypes/tests.py", line 66, in test_shortcut_view
self.assertEqual("http://example.com/users/john/", response._headers.get("location")[1])
AssertionError: 'http://example.com/users/john/' != '/users/john/'
----------------------------------------------------------------------
Ran 164 tests in 9.185s
FAILED (failures=1, skipped=1)
看起來像它在django-nonrel的版本中存在的一個問題,而我不是那種需要通過配置或類似方法解決的問題。謝謝! – 2010-11-06 09:11:57