offline home showmecode python manage py test Creating test database C

  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
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
[offline@home showmecode]$ python manage.py test
Creating test database...
Creating table django_admin_log
Creating table auth_permission
Creating table auth_group
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_session
Creating table django_site
Installing index for admin.LogEntry model
Installing index for auth.Permission model
Installing index for auth.Message model
EEEEEEEE.E.........E
======================================================================
ERROR: test_password_change_fails_with_invalid_old_password (django.contrib.auth.tests.views.ChangePasswordTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 135, in test_password_change_fails_with_invalid_old_password
'new_password2': 'password1',
File "/usr/lib/python2.5/site-packages/django/test/client.py", line 296, in post
return self.request(**r)
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.5/site-packages/django/contrib/auth/decorators.py", line 66, in __call__
if self.test_func(request.user):
AttributeError: 'WSGIRequest' object has no attribute 'user'
======================================================================
ERROR: test_password_change_fails_with_mismatched_passwords (django.contrib.auth.tests.views.ChangePasswordTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 146, in test_password_change_fails_with_mismatched_passwords
'new_password2': 'donuts',
File "/usr/lib/python2.5/site-packages/django/test/client.py", line 296, in post
return self.request(**r)
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.5/site-packages/django/contrib/auth/decorators.py", line 66, in __call__
if self.test_func(request.user):
AttributeError: 'WSGIRequest' object has no attribute 'user'
======================================================================
ERROR: test_password_change_succeeds (django.contrib.auth.tests.views.ChangePasswordTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 157, in test_password_change_succeeds
'new_password2': 'password1',
File "/usr/lib/python2.5/site-packages/django/test/client.py", line 296, in post
return self.request(**r)
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.5/site-packages/django/contrib/auth/decorators.py", line 66, in __call__
if self.test_func(request.user):
AttributeError: 'WSGIRequest' object has no attribute 'user'
======================================================================
ERROR: test_confirm_complete (django.contrib.auth.tests.views.PasswordResetTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 73, in test_confirm_complete
'new_password2': 'anewpassword'})
File "/usr/lib/python2.5/site-packages/django/test/client.py", line 296, in post
return self.request(**r)
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.5/site-packages/django/contrib/auth/views.py", line 119, in password_reset_confirm
context_instance = RequestContext(request)
File "/usr/lib/python2.5/site-packages/django/template/context.py", line 104, in __init__
for processor in get_standard_processors() + processors:
File "/usr/lib/python2.5/site-packages/django/template/context.py", line 82, in get_standard_processors
raise ImproperlyConfigured('Error importing request processor module %s: "%s"' % (module, e))
ImproperlyConfigured: Error importing request processor module project.context_processors: "No module named project.context_processors"
======================================================================
ERROR: test_confirm_different_passwords (django.contrib.auth.tests.views.PasswordResetTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 88, in test_confirm_different_passwords
'new_password2':' x'})
File "/usr/lib/python2.5/site-packages/django/test/client.py", line 296, in post
return self.request(**r)
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.5/site-packages/django/contrib/auth/views.py", line 119, in password_reset_confirm
context_instance = RequestContext(request)
File "/usr/lib/python2.5/site-packages/django/template/context.py", line 104, in __init__
for processor in get_standard_processors() + processors:
File "/usr/lib/python2.5/site-packages/django/template/context.py", line 82, in get_standard_processors
raise ImproperlyConfigured('Error importing request processor module %s: "%s"' % (module, e))
ImproperlyConfigured: Error importing request processor module project.context_processors: "No module named project.context_processors"
======================================================================
ERROR: test_confirm_invalid (django.contrib.auth.tests.views.PasswordResetTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 54, in test_confirm_invalid
response = self.client.get(path)
File "/usr/lib/python2.5/site-packages/django/test/client.py", line 274, in get
return self.request(**r)
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.5/site-packages/django/contrib/auth/views.py", line 119, in password_reset_confirm
context_instance = RequestContext(request)
File "/usr/lib/python2.5/site-packages/django/template/context.py", line 104, in __init__
for processor in get_standard_processors() + processors:
File "/usr/lib/python2.5/site-packages/django/template/context.py", line 82, in get_standard_processors
raise ImproperlyConfigured('Error importing request processor module %s: "%s"' % (module, e))
ImproperlyConfigured: Error importing request processor module project.context_processors: "No module named project.context_processors"
======================================================================
ERROR: test_confirm_invalid_post (django.contrib.auth.tests.views.PasswordResetTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 65, in test_confirm_invalid_post
'new_password2':' anewpassword'})
File "/usr/lib/python2.5/site-packages/django/test/client.py", line 296, in post
return self.request(**r)
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.5/site-packages/django/contrib/auth/views.py", line 119, in password_reset_confirm
context_instance = RequestContext(request)
File "/usr/lib/python2.5/site-packages/django/template/context.py", line 104, in __init__
for processor in get_standard_processors() + processors:
File "/usr/lib/python2.5/site-packages/django/template/context.py", line 82, in get_standard_processors
raise ImproperlyConfigured('Error importing request processor module %s: "%s"' % (module, e))
ImproperlyConfigured: Error importing request processor module project.context_processors: "No module named project.context_processors"
======================================================================
ERROR: test_confirm_valid (django.contrib.auth.tests.views.PasswordResetTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 43, in test_confirm_valid
response = self.client.get(path)
File "/usr/lib/python2.5/site-packages/django/test/client.py", line 274, in get
return self.request(**r)
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.5/site-packages/django/contrib/auth/views.py", line 119, in password_reset_confirm
context_instance = RequestContext(request)
File "/usr/lib/python2.5/site-packages/django/template/context.py", line 104, in __init__
for processor in get_standard_processors() + processors:
File "/usr/lib/python2.5/site-packages/django/template/context.py", line 82, in get_standard_processors
raise ImproperlyConfigured('Error importing request processor module %s: "%s"' % (module, e))
ImproperlyConfigured: Error importing request processor module project.context_processors: "No module named project.context_processors"
======================================================================
ERROR: Error is raised if the provided email address isn't currently registered
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 16, in test_email_not_found
response = self.client.get('/password_reset/')
File "/usr/lib/python2.5/site-packages/django/test/client.py", line 274, in get
return self.request(**r)
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.5/site-packages/django/contrib/auth/views.py", line 98, in password_reset
}, context_instance=RequestContext(request))
File "/usr/lib/python2.5/site-packages/django/template/context.py", line 104, in __init__
for processor in get_standard_processors() + processors:
File "/usr/lib/python2.5/site-packages/django/template/context.py", line 82, in get_standard_processors
raise ImproperlyConfigured('Error importing request processor module %s: "%s"' % (module, e))
ImproperlyConfigured: Error importing request processor module project.context_processors: "No module named project.context_processors"
======================================================================
ERROR: testActivation (account.tests.AuthKeyMiddlewareTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/offline/Development/django/showmecode/account/tests.py", line 75, in testActivation
resp = self.client.get(test_url)
File "/usr/lib/python2.5/site-packages/django/test/client.py", line 274, in get
return self.request(**r)
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/home/offline/Development/django/showmecode/account/tests.py", line 126, in test_view
return HttpResponse(request.user and request.user.username or '')
AttributeError: 'WSGIRequest' object has no attribute 'user'
----------------------------------------------------------------------
Ran 20 tests in 3.645s
FAILED (errors=10)
Destroying test database...