oduvan oduvan-laptop www django_experiments tester python manage py te

  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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
oduvan@oduvan-laptop:~/www/django_experiments/tester$ python manage.py test
Creating test database...
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 auth.Permission model
Installing index for auth.Message model
EE..E...EEEEEEE..................
======================================================================
ERROR: test_password_change_fails_with_invalid_old_password (django.contrib.auth.tests.views.ChangePasswordTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/tests/views.py", line 156, in test_password_change_fails_with_invalid_old_password
'new_password2': 'password1',
File "/usr/local/lib/python2.6/dist-packages/django/test/client.py", line 313, in post
response = self.request(**r)
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 92, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/utils/decorators.py", line 23, in __call__
return self.decorator(self.func)(*args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/decorators.py", line 24, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/views.py", line 160, in password_change
}, context_instance=RequestContext(request))
File "/usr/local/lib/python2.6/dist-packages/django/shortcuts/__init__.py", line 20, in render_to_response
return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 103, in render_to_string
t = get_template(template_name)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 81, in get_template
source, origin = find_template_source(template_name)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 74, in find_template_source
raise TemplateDoesNotExist, name
TemplateDoesNotExist: registration/password_change_form.html
======================================================================
ERROR: test_password_change_fails_with_mismatched_passwords (django.contrib.auth.tests.views.ChangePasswordTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/tests/views.py", line 167, in test_password_change_fails_with_mismatched_passwords
'new_password2': 'donuts',
File "/usr/local/lib/python2.6/dist-packages/django/test/client.py", line 313, in post
response = self.request(**r)
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 92, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/utils/decorators.py", line 23, in __call__
return self.decorator(self.func)(*args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/decorators.py", line 24, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/views.py", line 160, in password_change
}, context_instance=RequestContext(request))
File "/usr/local/lib/python2.6/dist-packages/django/shortcuts/__init__.py", line 20, in render_to_response
return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 103, in render_to_string
t = get_template(template_name)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 81, in get_template
source, origin = find_template_source(template_name)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 74, in find_template_source
raise TemplateDoesNotExist, name
TemplateDoesNotExist: registration/password_change_form.html
======================================================================
ERROR: Logout without next_page option renders the default template
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/tests/views.py", line 216, in test_logout_default
response = self.client.get('/logout/')
File "/usr/local/lib/python2.6/dist-packages/django/test/client.py", line 281, in get
response = self.request(**r)
File "/usr/local/lib/python2.6/dist-packages/django/test/client.py", line 225, in request
response = self.handler(environ)
File "/usr/local/lib/python2.6/dist-packages/django/test/client.py", line 69, in __call__
response = self.get_response(request)
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 134, in get_response
return self.handle_uncaught_exception(request, resolver, exc_info)
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 165, in handle_uncaught_exception
callback, param_dict = resolver.resolve500()
File "/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py", line 266, in resolve500
return self._resolve_special('500')
File "/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py", line 255, in _resolve_special
callback = getattr(self.urlconf_module, 'handler%s' % view_type)
AttributeError: 'module' object has no attribute 'handler500'
======================================================================
ERROR: test_confirm_complete (django.contrib.auth.tests.views.PasswordResetTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/tests/views.py", line 107, in test_confirm_complete
url, path = self._test_confirm_start()
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/tests/views.py", line 67, in _test_confirm_start
response = self.client.post('/password_reset/', {'email': 'staffmember@example.com'})
File "/usr/local/lib/python2.6/dist-packages/django/test/client.py", line 313, in post
response = self.request(**r)
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 92, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/views.py", line 99, in password_reset
form.save(**opts)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/forms.py", line 125, in save
t = loader.get_template(email_template_name)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 81, in get_template
source, origin = find_template_source(template_name)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 74, in find_template_source
raise TemplateDoesNotExist, name
TemplateDoesNotExist: registration/password_reset_email.html
======================================================================
ERROR: test_confirm_different_passwords (django.contrib.auth.tests.views.PasswordResetTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/tests/views.py", line 122, in test_confirm_different_passwords
url, path = self._test_confirm_start()
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/tests/views.py", line 67, in _test_confirm_start
response = self.client.post('/password_reset/', {'email': 'staffmember@example.com'})
File "/usr/local/lib/python2.6/dist-packages/django/test/client.py", line 313, in post
response = self.request(**r)
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 92, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/views.py", line 99, in password_reset
form.save(**opts)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/forms.py", line 125, in save
t = loader.get_template(email_template_name)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 81, in get_template
source, origin = find_template_source(template_name)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 74, in find_template_source
raise TemplateDoesNotExist, name
TemplateDoesNotExist: registration/password_reset_email.html
======================================================================
ERROR: test_confirm_invalid (django.contrib.auth.tests.views.PasswordResetTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/tests/views.py", line 85, in test_confirm_invalid
url, path = self._test_confirm_start()
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/tests/views.py", line 67, in _test_confirm_start
response = self.client.post('/password_reset/', {'email': 'staffmember@example.com'})
File "/usr/local/lib/python2.6/dist-packages/django/test/client.py", line 313, in post
response = self.request(**r)
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 92, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/views.py", line 99, in password_reset
form.save(**opts)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/forms.py", line 125, in save
t = loader.get_template(email_template_name)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 81, in get_template
source, origin = find_template_source(template_name)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 74, in find_template_source
raise TemplateDoesNotExist, name
TemplateDoesNotExist: registration/password_reset_email.html
======================================================================
ERROR: test_confirm_invalid_post (django.contrib.auth.tests.views.PasswordResetTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/tests/views.py", line 97, in test_confirm_invalid_post
url, path = self._test_confirm_start()
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/tests/views.py", line 67, in _test_confirm_start
response = self.client.post('/password_reset/', {'email': 'staffmember@example.com'})
File "/usr/local/lib/python2.6/dist-packages/django/test/client.py", line 313, in post
response = self.request(**r)
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 92, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/views.py", line 99, in password_reset
form.save(**opts)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/forms.py", line 125, in save
t = loader.get_template(email_template_name)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 81, in get_template
source, origin = find_template_source(template_name)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 74, in find_template_source
raise TemplateDoesNotExist, name
TemplateDoesNotExist: registration/password_reset_email.html
======================================================================
ERROR: test_confirm_valid (django.contrib.auth.tests.views.PasswordResetTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/tests/views.py", line 78, in test_confirm_valid
url, path = self._test_confirm_start()
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/tests/views.py", line 67, in _test_confirm_start
response = self.client.post('/password_reset/', {'email': 'staffmember@example.com'})
File "/usr/local/lib/python2.6/dist-packages/django/test/client.py", line 313, in post
response = self.request(**r)
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 92, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/views.py", line 99, in password_reset
form.save(**opts)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/forms.py", line 125, in save
t = loader.get_template(email_template_name)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 81, in get_template
source, origin = find_template_source(template_name)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 74, in find_template_source
raise TemplateDoesNotExist, name
TemplateDoesNotExist: registration/password_reset_email.html
======================================================================
ERROR: Email is sent if a valid email address is provided for password reset
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/tests/views.py", line 60, in test_email_found
response = self.client.post('/password_reset/', {'email': 'staffmember@example.com'})
File "/usr/local/lib/python2.6/dist-packages/django/test/client.py", line 313, in post
response = self.request(**r)
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 92, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/views.py", line 99, in password_reset
form.save(**opts)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/forms.py", line 125, in save
t = loader.get_template(email_template_name)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 81, in get_template
source, origin = find_template_source(template_name)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 74, in find_template_source
raise TemplateDoesNotExist, name
TemplateDoesNotExist: registration/password_reset_email.html
======================================================================
ERROR: Error is raised if the provided email address isn't currently registered
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/tests/views.py", line 52, in test_email_not_found
response = self.client.get('/password_reset/')
File "/usr/local/lib/python2.6/dist-packages/django/test/client.py", line 281, in get
response = self.request(**r)
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 92, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/views.py", line 105, in password_reset
}, context_instance=RequestContext(request))
File "/usr/local/lib/python2.6/dist-packages/django/shortcuts/__init__.py", line 20, in render_to_response
return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 103, in render_to_string
t = get_template(template_name)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 81, in get_template
source, origin = find_template_source(template_name)
File "/usr/local/lib/python2.6/dist-packages/django/template/loader.py", line 74, in find_template_source
raise TemplateDoesNotExist, name
TemplateDoesNotExist: registration/password_reset_form.html
----------------------------------------------------------------------
Ran 33 tests in 0.581s
FAILED (errors=10)
Destroying test database...