forms
Ran on
July 6th 2008 03:22
Importing model forms
Creating test database...
Processing contenttypes.ContentType model
Creating table django_content_type
Processing auth.Permission model
Creating table auth_permission
Processing auth.Group model
Creating table auth_group
Processing auth.User model
Creating table auth_user
Processing auth.Message model
Creating table auth_message
Processing sites.Site model
Creating table django_site
Processing flatpages.FlatPage model
Creating table django_flatpage
Processing redirects.Redirect model
Creating table django_redirect
Processing sessions.Session model
Creating table django_session
Processing comments.Comment model
Creating table comments_comment
Processing comments.FreeComment model
Creating table comments_freecomment
Processing comments.KarmaScore model
Creating table comments_karmascore
Processing comments.UserFlag model
Creating table comments_userflag
Processing comments.ModeratorDeletion model
Creating table comments_moderatordeletion
Processing admin.LogEntry model
Creating table django_admin_log
Processing forms.BoundaryModel model
Creating table forms_boundarymodel
Processing forms.Defaults model
Creating table forms_defaults
Processing forms.ChoiceModel model
Creating table forms_choicemodel
Creating many-to-many tables for auth.Group model
Creating many-to-many tables for auth.User model
Creating many-to-many tables for flatpages.FlatPage model
Running post-sync handlers for application contenttypes
Adding content type 'contenttypes | contenttype'
Adding permission 'contenttypes | content type | Can add content type'
Adding permission 'contenttypes | content type | Can change content type'
Adding permission 'contenttypes | content type | Can delete content type'
Running post-sync handlers for application auth
Adding content type 'auth | permission'
Adding content type 'auth | group'
Adding content type 'auth | user'
Adding content type 'auth | message'
Adding permission 'auth | permission | Can add permission'
Adding permission 'auth | permission | Can change permission'
Adding permission 'auth | permission | Can delete permission'
Adding permission 'auth | group | Can add group'
Adding permission 'auth | group | Can change group'
Adding permission 'auth | group | Can delete group'
Adding permission 'auth | user | Can add user'
Adding permission 'auth | user | Can change user'
Adding permission 'auth | user | Can delete user'
Adding permission 'auth | message | Can add message'
Adding permission 'auth | message | Can change message'
Adding permission 'auth | message | Can delete message'
Running post-sync handlers for application sites
Creating example.com Site object
Adding content type 'sites | site'
Adding permission 'sites | site | Can add site'
Adding permission 'sites | site | Can change site'
Adding permission 'sites | site | Can delete site'
Running post-sync handlers for application flatpages
Adding content type 'flatpages | flatpage'
Adding permission 'flatpages | flat page | Can add flat page'
Adding permission 'flatpages | flat page | Can change flat page'
Adding permission 'flatpages | flat page | Can delete flat page'
Running post-sync handlers for application redirects
Adding content type 'redirects | redirect'
Adding permission 'redirects | redirect | Can add redirect'
Adding permission 'redirects | redirect | Can change redirect'
Adding permission 'redirects | redirect | Can delete redirect'
Running post-sync handlers for application sessions
Adding content type 'sessions | session'
Adding permission 'sessions | session | Can add session'
Adding permission 'sessions | session | Can change session'
Adding permission 'sessions | session | Can delete session'
Running post-sync handlers for application comments
Adding content type 'comments | comment'
Adding content type 'comments | freecomment'
Adding content type 'comments | karmascore'
Adding content type 'comments | userflag'
Adding content type 'comments | moderatordeletion'
Adding permission 'comments | comment | Can add comment'
Adding permission 'comments | comment | Can change comment'
Adding permission 'comments | comment | Can delete comment'
Adding permission 'comments | free comment | Can add free comment'
Adding permission 'comments | free comment | Can change free comment'
Adding permission 'comments | free comment | Can delete free comment'
Adding permission 'comments | karma score | Can add karma score'
Adding permission 'comments | karma score | Can change karma score'
Adding permission 'comments | karma score | Can delete karma score'
Adding permission 'comments | user flag | Can add user flag'
Adding permission 'comments | user flag | Can change user flag'
Adding permission 'comments | user flag | Can delete user flag'
Adding permission 'comments | moderator deletion | Can add moderator deletion'
Adding permission 'comments | moderator deletion | Can change moderator deletion'
Adding permission 'comments | moderator deletion | Can delete moderator deletion'
Running post-sync handlers for application admin
Adding content type 'admin | logentry'
Adding permission 'admin | log entry | Can add log entry'
Adding permission 'admin | log entry | Can change log entry'
Adding permission 'admin | log entry | Can delete log entry'
Running post-sync handlers for application forms
Adding content type 'forms | boundarymodel'
Adding content type 'forms | defaults'
Adding content type 'forms | choicemodel'
Adding permission 'forms | boundary model | Can add boundary model'
Adding permission 'forms | boundary model | Can change boundary model'
Adding permission 'forms | boundary model | Can delete boundary model'
Adding permission 'forms | defaults | Can add defaults'
Adding permission 'forms | defaults | Can change defaults'
Adding permission 'forms | defaults | Can delete defaults'
Adding permission 'forms | choice model | Can add choice model'
Adding permission 'forms | choice model | Can change choice model'
Adding permission 'forms | choice model | Can delete choice model'
No custom SQL for contenttypes.ContentType model
No custom SQL for auth.Permission model
No custom SQL for auth.Group model
No custom SQL for auth.User model
No custom SQL for auth.Message model
No custom SQL for sites.Site model
No custom SQL for flatpages.FlatPage model
No custom SQL for redirects.Redirect model
No custom SQL for sessions.Session model
No custom SQL for comments.Comment model
No custom SQL for comments.FreeComment model
No custom SQL for comments.KarmaScore model
No custom SQL for comments.UserFlag model
No custom SQL for comments.ModeratorDeletion model
No custom SQL for admin.LogEntry model
No custom SQL for forms.BoundaryModel model
No custom SQL for forms.Defaults model
No custom SQL for forms.ChoiceModel model
Installing index for auth.Permission model
Installing index for auth.Message model
Installing index for flatpages.FlatPage model
Installing index for redirects.Redirect model
Installing index for comments.Comment model
Installing index for comments.FreeComment model
Installing index for comments.KarmaScore model
Installing index for comments.UserFlag model
Installing index for comments.ModeratorDeletion model
Installing index for admin.LogEntry model
Loading 'initial_data' fixtures...
Checking '/home/lsoto/src/django.svn.trunk/django/contrib/contenttypes/fixtures' for fixtures...
Trying '/home/lsoto/src/django.svn.trunk/django/contrib/contenttypes/fixtures' for json fixture 'initial_data'...
No json fixture 'initial_data' in '/home/lsoto/src/django.svn.trunk/django/contrib/contenttypes/fixtures'.
Trying '/home/lsoto/src/django.svn.trunk/django/contrib/contenttypes/fixtures' for xml fixture 'initial_data'...
No xml fixture 'initial_data' in '/home/lsoto/src/django.svn.trunk/django/contrib/contenttypes/fixtures'.
Checking '/home/lsoto/src/django.svn.trunk/django/contrib/auth/fixtures' for fixtures...
Trying '/home/lsoto/src/django.svn.trunk/django/contrib/auth/fixtures' for json fixture 'initial_data'...
No json fixture 'initial_data' in '/home/lsoto/src/django.svn.trunk/django/contrib/auth/fixtures'.
Trying '/home/lsoto/src/django.svn.trunk/django/contrib/auth/fixtures' for xml fixture 'initial_data'...
No xml fixture 'initial_data' in '/home/lsoto/src/django.svn.trunk/django/contrib/auth/fixtures'.
Checking '/home/lsoto/src/django.svn.trunk/django/contrib/sites/fixtures' for fixtures...
Trying '/home/lsoto/src/django.svn.trunk/django/contrib/sites/fixtures' for json fixture 'initial_data'...
No json fixture 'initial_data' in '/home/lsoto/src/django.svn.trunk/django/contrib/sites/fixtures'.
Trying '/home/lsoto/src/django.svn.trunk/django/contrib/sites/fixtures' for xml fixture 'initial_data'...
No xml fixture 'initial_data' in '/home/lsoto/src/django.svn.trunk/django/contrib/sites/fixtures'.
Checking '/home/lsoto/src/django.svn.trunk/django/contrib/flatpages/fixtures' for fixtures...
Trying '/home/lsoto/src/django.svn.trunk/django/contrib/flatpages/fixtures' for json fixture 'initial_data'...
No json fixture 'initial_data' in '/home/lsoto/src/django.svn.trunk/django/contrib/flatpages/fixtures'.
Trying '/home/lsoto/src/django.svn.trunk/django/contrib/flatpages/fixtures' for xml fixture 'initial_data'...
No xml fixture 'initial_data' in '/home/lsoto/src/django.svn.trunk/django/contrib/flatpages/fixtures'.
Checking '/home/lsoto/src/django.svn.trunk/django/contrib/redirects/fixtures' for fixtures...
Trying '/home/lsoto/src/django.svn.trunk/django/contrib/redirects/fixtures' for json fixture 'initial_data'...
No json fixture 'initial_data' in '/home/lsoto/src/django.svn.trunk/django/contrib/redirects/fixtures'.
Trying '/home/lsoto/src/django.svn.trunk/django/contrib/redirects/fixtures' for xml fixture 'initial_data'...
No xml fixture 'initial_data' in '/home/lsoto/src/django.svn.trunk/django/contrib/redirects/fixtures'.
Checking '/home/lsoto/src/django.svn.trunk/django/contrib/sessions/fixtures' for fixtures...
Trying '/home/lsoto/src/django.svn.trunk/django/contrib/sessions/fixtures' for json fixture 'initial_data'...
No json fixture 'initial_data' in '/home/lsoto/src/django.svn.trunk/django/contrib/sessions/fixtures'.
Trying '/home/lsoto/src/django.svn.trunk/django/contrib/sessions/fixtures' for xml fixture 'initial_data'...
No xml fixture 'initial_data' in '/home/lsoto/src/django.svn.trunk/django/contrib/sessions/fixtures'.
Checking '/home/lsoto/src/django.svn.trunk/django/contrib/comments/fixtures' for fixtures...
Trying '/home/lsoto/src/django.svn.trunk/django/contrib/comments/fixtures' for json fixture 'initial_data'...
No json fixture 'initial_data' in '/home/lsoto/src/django.svn.trunk/django/contrib/comments/fixtures'.
Trying '/home/lsoto/src/django.svn.trunk/django/contrib/comments/fixtures' for xml fixture 'initial_data'...
No xml fixture 'initial_data' in '/home/lsoto/src/django.svn.trunk/django/contrib/comments/fixtures'.
Checking '/home/lsoto/src/django.svn.trunk/django/contrib/admin/fixtures' for fixtures...
Trying '/home/lsoto/src/django.svn.trunk/django/contrib/admin/fixtures' for json fixture 'initial_data'...
No json fixture 'initial_data' in '/home/lsoto/src/django.svn.trunk/django/contrib/admin/fixtures'.
Trying '/home/lsoto/src/django.svn.trunk/django/contrib/admin/fixtures' for xml fixture 'initial_data'...
No xml fixture 'initial_data' in '/home/lsoto/src/django.svn.trunk/django/contrib/admin/fixtures'.
Checking '/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/fixtures' for fixtures...
Trying '/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/fixtures' for json fixture 'initial_data'...
No json fixture 'initial_data' in '/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/fixtures'.
Trying '/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/fixtures' for xml fixture 'initial_data'...
No xml fixture 'initial_data' in '/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/fixtures'.
Checking absolute path for fixtures...
Trying absolute path for json fixture 'initial_data'...
No json fixture 'initial_data' in absolute path.
Trying absolute path for xml fixture 'initial_data'...
No xml fixture 'initial_data' in absolute path.
No fixtures found.
Doctest: regressiontests.forms.models.__test__.API_TESTS ... ok
Doctest: regressiontests.forms.tests.__test__.custom_error_message_tests ... ok
Doctest: regressiontests.forms.tests.__test__.extra_tests ... FAIL
Doctest: regressiontests.forms.tests.__test__.fields_tests ... FAIL
Doctest: regressiontests.forms.tests.__test__.form_tests ... FAIL
Doctest: regressiontests.forms.tests.__test__.localflavor_ar_tests ... ok
Doctest: regressiontests.forms.tests.__test__.localflavor_au_tests ... ok
Doctest: regressiontests.forms.tests.__test__.localflavor_br_tests ... ok
Doctest: regressiontests.forms.tests.__test__.localflavor_ca_tests ... ok
Doctest: regressiontests.forms.tests.__test__.localflavor_ch_tests ... ok
Doctest: regressiontests.forms.tests.__test__.localflavor_cl_tests ... ok
Doctest: regressiontests.forms.tests.__test__.localflavor_de_tests ... ok
Doctest: regressiontests.forms.tests.__test__.localflavor_es_tests ... ok
Doctest: regressiontests.forms.tests.__test__.localflavor_fi_tests ... ok
Doctest: regressiontests.forms.tests.__test__.localflavor_fr_tests ... ok
Doctest: regressiontests.forms.tests.__test__.localflavor_generic_tests ... FAIL
Doctest: regressiontests.forms.tests.__test__.localflavor_is_tests ... ok
Doctest: regressiontests.forms.tests.__test__.localflavor_it_tests ... ok
Doctest: regressiontests.forms.tests.__test__.localflavor_jp_tests ... ok
Doctest: regressiontests.forms.tests.__test__.localflavor_nl_tests ... ok
Doctest: regressiontests.forms.tests.__test__.localflavor_pl_tests ... FAIL
Doctest: regressiontests.forms.tests.__test__.localflavor_sk_tests ... ok
Doctest: regressiontests.forms.tests.__test__.localflavor_uk_tests ... ok
Doctest: regressiontests.forms.tests.__test__.localflavor_us_tests ... ok
Doctest: regressiontests.forms.tests.__test__.localflavor_za_tests ... ok
Doctest: regressiontests.forms.tests.__test__.regression_tests ... FAIL
Doctest: regressiontests.forms.tests.__test__.util_tests ... FAIL
Doctest: regressiontests.forms.tests.__test__.widgets_tests ... FAIL
======================================================================
FAIL: Doctest: regressiontests.forms.tests.__test__.extra_tests
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 2180, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for regressiontests.forms.tests.__test__.extra_tests
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line unknown line number, in extra_tests
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.extra_tests
Failed example:
print w.render('name', 'some text,JP,2007-04-25 06:24:00')
Exception raised:
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 1266, in _DocTestRunner__run
exec compile(example.source, filename, "single",
File "<doctest regressiontests.forms.tests.__test__.extra_tests[23]>", line 1, in <module>
print w.render('name', 'some text,JP,2007-04-25 06:24:00')
File "/home/lsoto/src/django.svn.trunk/django/newforms/widgets.py", line 425, in render
value = self.decompress(value)
File "/home/lsoto/src/django.svn.trunk/django/newforms/widgets.py", line 465, in decompress
raise NotImplementedError('Subclasses must implement this method.')
NotImplementedError: Subclasses must implement this method.
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.extra_tests
Failed example:
f.clean(['some text', ['J','P'], ['2007-04-25','6:24:00']])
Exception raised:
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 1266, in _DocTestRunner__run
exec compile(example.source, filename, "single",
File "<doctest regressiontests.forms.tests.__test__.extra_tests[26]>", line 1, in <module>
f.clean(['some text', ['J','P'], ['2007-04-25','6:24:00']])
File "/home/lsoto/src/django.svn.trunk/django/newforms/fields.py", line 752, in clean
return self.compress(clean_data)
File "/home/lsoto/src/django.svn.trunk/django/newforms/fields.py", line 763, in compress
raise NotImplementedError('Subclasses must implement this method.')
NotImplementedError: Subclasses must implement this method.
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.extra_tests
Failed example:
print f
Exception raised:
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 1266, in _DocTestRunner__run
exec compile(example.source, filename, "single",
File "<doctest regressiontests.forms.tests.__test__.extra_tests[31]>", line 1, in <module>
print f
File "/home/lsoto/src/django.svn.trunk/django/utils/encoding.py", line 25, in __str__
return self.__unicode__().encode('utf-8')
File "/home/lsoto/src/django.svn.trunk/django/newforms/forms.py", line 86, in __unicode__
return self.as_table()
File "/home/lsoto/src/django.svn.trunk/django/newforms/forms.py", line 169, in as_table
return self._html_output(u'<tr><th>%(label)s</th><td>%(errors)s%(field)s%(help_text)s</td></tr>', u'<tr><td colspan="2">%s</td></tr>', '</td></tr>', u'<br />%s', False)
File "/home/lsoto/src/django.svn.trunk/django/newforms/forms.py", line 151, in _html_output
output.append(normal_row % {'errors': force_unicode(bf_errors), 'label': force_unicode(label), 'field': unicode(bf), 'help_text': help_text})
File "/home/lsoto/src/django.svn.trunk/django/newforms/forms.py", line 265, in __unicode__
return self.as_widget()
File "/home/lsoto/src/django.svn.trunk/django/newforms/forms.py", line 293, in as_widget
return widget.render(self.html_name, data, attrs=attrs)
File "/home/lsoto/src/django.svn.trunk/django/newforms/widgets.py", line 425, in render
value = self.decompress(value)
File "/home/lsoto/src/django.svn.trunk/django/newforms/widgets.py", line 465, in decompress
raise NotImplementedError('Subclasses must implement this method.')
NotImplementedError: Subclasses must implement this method.
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.extra_tests
Failed example:
print f
Exception raised:
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 1266, in _DocTestRunner__run
exec compile(example.source, filename, "single",
File "<doctest regressiontests.forms.tests.__test__.extra_tests[33]>", line 1, in <module>
print f
File "/home/lsoto/src/django.svn.trunk/django/utils/encoding.py", line 25, in __str__
return self.__unicode__().encode('utf-8')
File "/home/lsoto/src/django.svn.trunk/django/newforms/forms.py", line 86, in __unicode__
return self.as_table()
File "/home/lsoto/src/django.svn.trunk/django/newforms/forms.py", line 169, in as_table
return self._html_output(u'<tr><th>%(label)s</th><td>%(errors)s%(field)s%(help_text)s</td></tr>', u'<tr><td colspan="2">%s</td></tr>', '</td></tr>', u'<br />%s', False)
File "/home/lsoto/src/django.svn.trunk/django/newforms/forms.py", line 125, in _html_output
top_errors = self.non_field_errors() # Errors that should be displayed above all fields.
File "/home/lsoto/src/django.svn.trunk/django/newforms/forms.py", line 185, in non_field_errors
return self.errors.get(NON_FIELD_ERRORS, self.error_class())
File "/home/lsoto/src/django.svn.trunk/django/newforms/forms.py", line 103, in _get_errors
self.full_clean()
File "/home/lsoto/src/django.svn.trunk/django/newforms/forms.py", line 206, in full_clean
value = field.clean(value)
File "/home/lsoto/src/django.svn.trunk/django/newforms/fields.py", line 752, in clean
return self.compress(clean_data)
File "/home/lsoto/src/django.svn.trunk/django/newforms/fields.py", line 763, in compress
raise NotImplementedError('Subclasses must implement this method.')
NotImplementedError: Subclasses must implement this method.
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.extra_tests
Failed example:
f.cleaned_data['field1']
Exception raised:
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 1266, in _DocTestRunner__run
exec compile(example.source, filename, "single",
File "<doctest regressiontests.forms.tests.__test__.extra_tests[34]>", line 1, in <module>
f.cleaned_data['field1']
KeyError: 'field1'
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.extra_tests
Failed example:
smart_unicode(Test())
Expected:
u'\u0160\u0110\u0106\u017d\u0107\u017e\u0161\u0111'
Got:
u'????????'
======================================================================
FAIL: Doctest: regressiontests.forms.tests.__test__.fields_tests
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 2180, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for regressiontests.forms.tests.__test__.fields_tests
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line unknown line number, in fields_tests
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.fields_tests
Failed example:
f.clean('October 25 2006')
Exception raised:
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 1266, in _DocTestRunner__run
exec compile(example.source, filename, "single",
File "<doctest regressiontests.forms.tests.__test__.fields_tests[152]>", line 1, in <module>
f.clean('October 25 2006')
File "/home/lsoto/src/django.svn.trunk/django/newforms/fields.py", line 292, in clean
raise ValidationError(self.error_messages['invalid'])
ValidationError: [u'Enter a valid date.']
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.fields_tests
Failed example:
f.clean('October 25, 2006')
Exception raised:
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 1266, in _DocTestRunner__run
exec compile(example.source, filename, "single",
File "<doctest regressiontests.forms.tests.__test__.fields_tests[153]>", line 1, in <module>
f.clean('October 25, 2006')
File "/home/lsoto/src/django.svn.trunk/django/newforms/fields.py", line 292, in clean
raise ValidationError(self.error_messages['invalid'])
ValidationError: [u'Enter a valid date.']
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.fields_tests
Failed example:
f.clean('25 October 2006')
Exception raised:
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 1266, in _DocTestRunner__run
exec compile(example.source, filename, "single",
File "<doctest regressiontests.forms.tests.__test__.fields_tests[154]>", line 1, in <module>
f.clean('25 October 2006')
File "/home/lsoto/src/django.svn.trunk/django/newforms/fields.py", line 292, in clean
raise ValidationError(self.error_messages['invalid'])
ValidationError: [u'Enter a valid date.']
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.fields_tests
Failed example:
f.clean('25 October, 2006')
Exception raised:
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 1266, in _DocTestRunner__run
exec compile(example.source, filename, "single",
File "<doctest regressiontests.forms.tests.__test__.fields_tests[155]>", line 1, in <module>
f.clean('25 October, 2006')
File "/home/lsoto/src/django.svn.trunk/django/newforms/fields.py", line 292, in clean
raise ValidationError(self.error_messages['invalid'])
ValidationError: [u'Enter a valid date.']
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.fields_tests
Failed example:
f.clean('http://www.google.com') # This will fail if there's no Internet connection
Exception raised:
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 1266, in _DocTestRunner__run
exec compile(example.source, filename, "single",
File "<doctest regressiontests.forms.tests.__test__.fields_tests[305]>", line 1, in <module>
f.clean('http://www.google.com') # This will fail if there's no Internet connection
File "/home/lsoto/src/django.svn.trunk/django/newforms/fields.py", line 570, in clean
raise ValidationError(self.error_messages['invalid_link'])
ValidationError: [u'This URL appears to be a broken link.']
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.fields_tests
Failed example:
f.clean('http://www.google.com') # This will fail if there's no Internet connection
Exception raised:
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 1266, in _DocTestRunner__run
exec compile(example.source, filename, "single",
File "<doctest regressiontests.forms.tests.__test__.fields_tests[311]>", line 1, in <module>
f.clean('http://www.google.com') # This will fail if there's no Internet connection
File "/home/lsoto/src/django.svn.trunk/django/newforms/fields.py", line 570, in clean
raise ValidationError(self.error_messages['invalid_link'])
ValidationError: [u'This URL appears to be a broken link.']
======================================================================
FAIL: Doctest: regressiontests.forms.tests.__test__.form_tests
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 2180, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for regressiontests.forms.tests.__test__.form_tests
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line unknown line number, in form_tests
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.form_tests
Failed example:
p.errors.as_ul()
Expected:
u'<ul class="errorlist"><li>first_name<ul class="errorlist"><li>This field is required.</li></ul></li><li>birthday<ul class="errorlist"><li>This field is required.</li></ul></li></ul>'
Got:
u'<ul class="errorlist"><li>birthday<ul class="errorlist"><li>This field is required.</li></ul></li><li>first_name<ul class="errorlist"><li>This field is required.</li></ul></li></ul>'
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.form_tests
Failed example:
print p.errors.as_text()
Expected:
* first_name
* This field is required.
* birthday
* This field is required.
Got:
* birthday
* This field is required.
* first_name
* This field is required.
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.form_tests
Failed example:
p.as_ul()
Expected:
u'<li>\u0160\u0110\u0106\u017d\u0107\u017e\u0161\u0111: <input type="text" name="username" maxlength="10" /></li>\n<li>\u0160\u0110\u0106\u017d\u0107\u017e\u0161\u0111: <input type="password" name="password" /></li>'
Got:
u'<li>???????? <input name="username" type="text" maxlength="10" /></li>\n<li>\u0160\u0110\u0106\u017d\u0107\u017e\u0161\u0111: <input name="password" type="password" /></li>'
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.form_tests
Failed example:
p.as_ul()
Expected:
u'<li>Username: <input type="text" name="username" maxlength="10" /> \u0160\u0110\u0106\u017d\u0107\u017e\u0161\u0111</li>'
Got:
u'<li>Username: <input name="username" type="text" maxlength="10" /> ????????</li>'
======================================================================
FAIL: Doctest: regressiontests.forms.tests.__test__.localflavor_generic_tests
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 2180, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for regressiontests.forms.tests.__test__.localflavor_generic_tests
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line unknown line number, in localflavor_generic_tests
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.localflavor_generic_tests
Failed example:
f.clean('October 25 2006')
Exception raised:
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 1266, in _DocTestRunner__run
exec compile(example.source, filename, "single",
File "<doctest regressiontests.forms.tests.__test__.localflavor_generic_tests[11]>", line 1, in <module>
f.clean('October 25 2006')
File "/home/lsoto/src/django.svn.trunk/django/newforms/fields.py", line 292, in clean
raise ValidationError(self.error_messages['invalid'])
ValidationError: [u'Enter a valid date.']
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.localflavor_generic_tests
Failed example:
f.clean('October 25, 2006')
Exception raised:
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 1266, in _DocTestRunner__run
exec compile(example.source, filename, "single",
File "<doctest regressiontests.forms.tests.__test__.localflavor_generic_tests[12]>", line 1, in <module>
f.clean('October 25, 2006')
File "/home/lsoto/src/django.svn.trunk/django/newforms/fields.py", line 292, in clean
raise ValidationError(self.error_messages['invalid'])
ValidationError: [u'Enter a valid date.']
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.localflavor_generic_tests
Failed example:
f.clean('25 October 2006')
Exception raised:
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 1266, in _DocTestRunner__run
exec compile(example.source, filename, "single",
File "<doctest regressiontests.forms.tests.__test__.localflavor_generic_tests[13]>", line 1, in <module>
f.clean('25 October 2006')
File "/home/lsoto/src/django.svn.trunk/django/newforms/fields.py", line 292, in clean
raise ValidationError(self.error_messages['invalid'])
ValidationError: [u'Enter a valid date.']
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.localflavor_generic_tests
Failed example:
f.clean('25 October, 2006')
Exception raised:
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 1266, in _DocTestRunner__run
exec compile(example.source, filename, "single",
File "<doctest regressiontests.forms.tests.__test__.localflavor_generic_tests[14]>", line 1, in <module>
f.clean('25 October, 2006')
File "/home/lsoto/src/django.svn.trunk/django/newforms/fields.py", line 292, in clean
raise ValidationError(self.error_messages['invalid'])
ValidationError: [u'Enter a valid date.']
======================================================================
FAIL: Doctest: regressiontests.forms.tests.__test__.localflavor_pl_tests
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 2180, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for regressiontests.forms.tests.__test__.localflavor_pl_tests
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line unknown line number, in localflavor_pl_tests
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.localflavor_pl_tests
Failed example:
f.render('administrativeunit','katowice')
Exception raised:
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 1266, in _DocTestRunner__run
exec compile(example.source, filename, "single",
File "<doctest regressiontests.forms.tests.__test__.localflavor_pl_tests[5]>", line 1, in <module>
f.render('administrativeunit','katowice')
File "/home/lsoto/src/django.svn.trunk/django/newforms/widgets.py", line 218, in render
option_value = force_unicode(option_value)
File "/home/lsoto/src/django.svn.trunk/django/utils/encoding.py", line 60, in force_unicode
raise DjangoUnicodeDecodeError(s, *e.args)
DjangoUnicodeDecodeError: 'utf-8' codec can't decode byte 0x66 in position 0: ordinal not in range(255). You passed in '\u0142omzynski' (<type 'str'>)
======================================================================
FAIL: Doctest: regressiontests.forms.tests.__test__.regression_tests
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 2180, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for regressiontests.forms.tests.__test__.regression_tests
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line unknown line number, in regression_tests
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.regression_tests
Failed example:
print f.as_p()
Expected:
<p><label for="id_username">Benutzername:</label> <input id="id_username" type="text" name="username" maxlength="10" /></p>
Got:
<p><label for="id_username">Username:</label> <input name="username" id="id_username" type="text" maxlength="10" /></p>
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.regression_tests
Failed example:
f.as_p()
Expected:
u'<p><label for="id_username">Nazwa u\u017cytkownika:</label> <input id="id_username" type="text" name="username" maxlength="10" /></p>'
Got:
u'<p><label for="id_username">Username:</label> <input name="username" id="id_username" type="text" maxlength="10" /></p>'
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.regression_tests
Failed example:
f.as_p()
Expected:
u'<ul class="errorlist"><li>\u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435.</li></ul>\n<p><label for="id_somechoice_0">\xc5\xf8\xdf:</label> <ul>\n<li><label for="id_somechoice_0"><input type="radio" id="id_somechoice_0" value="\xc5" name="somechoice" /> En tied\xe4</label></li>\n<li><label for="id_somechoice_1"><input type="radio" id="id_somechoice_1" value="\xf8" name="somechoice" /> Mies</label></li>\n<li><label for="id_somechoice_2"><input type="radio" id="id_somechoice_2" value="\xdf" name="somechoice" /> Nainen</label></li>\n</ul></p>'
Got:
u'<ul class="errorlist"><li>This field is required.</li></ul>\n<p><label for="id_somechoice_0">\xc5\xf8\xdf:</label> <ul>\n<li><label for="id_somechoice_0"><input name="somechoice" id="id_somechoice_0" type="radio" value="\xc5" /> En tied\xe4</label></li>\n<li><label for="id_somechoice_1"><input name="somechoice" id="id_somechoice_1" type="radio" value="\xf8" /> Mies</label></li>\n<li><label for="id_somechoice_2"><input name="somechoice" id="id_somechoice_2" type="radio" value="\xdf" /> Nainen</label></li>\n</ul></p>'
======================================================================
FAIL: Doctest: regressiontests.forms.tests.__test__.util_tests
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 2180, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for regressiontests.forms.tests.__test__.util_tests
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line unknown line number, in util_tests
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.util_tests
Failed example:
print ValidationError(u"Not \u03C0.").messages
Expected:
<ul class="errorlist"><li>Not ?.</li></ul>
Got:
<ul class="errorlist"><li>Not Ï.</li></ul>
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.util_tests
Failed example:
print ValidationError(["First error.", u"Not \u03C0.", ugettext_lazy("Error.")]).messages
Expected:
<ul class="errorlist"><li>First error.</li><li>Not ?.</li><li>Error.</li></ul>
Got:
<ul class="errorlist"><li>First error.</li><li>Not Ï.</li><li>Error.</li></ul>
======================================================================
FAIL: Doctest: regressiontests.forms.tests.__test__.widgets_tests
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/lsoto/src/django.svn.trunk/django/test/_doctest.py", line 2180, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for regressiontests.forms.tests.__test__.widgets_tests
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line unknown line number, in widgets_tests
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.widgets_tests
Failed example:
w.render('email', '????????', attrs={'class': 'fun'})
Expected:
u'<input type="text" name="email" value="\u0160\u0110\u0106\u017d\u0107\u017e\u0161\u0111" class="fun" />'
Got:
u'<input class="fun" name="email" type="text" value="????????" />'
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.widgets_tests
Failed example:
w.render('email', '????????', attrs={'class': 'fun'})
Expected:
u'<input type="password" class="fun" value="\u0160\u0110\u0106\u017d\u0107\u017e\u0161\u0111" name="email" />'
Got:
u'<input class="fun" name="email" type="password" value="????????" />'
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.widgets_tests
Failed example:
w.render('email', '????????', attrs={'class': 'fun'})
Expected:
u'<input type="hidden" class="fun" value="\u0160\u0110\u0106\u017d\u0107\u017e\u0161\u0111" name="email" />'
Got:
u'<input class="fun" name="email" type="hidden" value="????????" />'
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.widgets_tests
Failed example:
w.render('email', ['????????'], attrs={'class': 'fun'})
Expected:
u'<input type="hidden" class="fun" value="\u0160\u0110\u0106\u017d\u0107\u017e\u0161\u0111" name="email" />'
Got:
u'<input class="fun" name="email" type="hidden" value="????????" />'
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.widgets_tests
Failed example:
w.render('msg', '????????', attrs={'class': 'fun'})
Expected:
u'<textarea rows="10" cols="40" name="msg" class="fun">\u0160\u0110\u0106\u017d\u0107\u017e\u0161\u0111</textarea>'
Got:
u'<textarea rows="10" class="fun" name="msg" cols="40">????????</textarea>'
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.widgets_tests
Failed example:
w.render('email', '????????', choices=[('????????', '??abc??????'), ('????', 'abc????')])
Expected:
u'<select name="email">\n<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="\u0160\u0110\u0106\u017d\u0107\u017e\u0161\u0111" selected="selected">\u0160\u0110abc\u0106\u017d\u0107\u017e\u0161\u0111</option>\n<option value="\u0107\u017e\u0161\u0111">abc\u0107\u017e\u0161\u0111</option>\n</select>'
Got:
u'<select name="email">\n<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="????????" selected="selected">??abc??????</option>\n<option value="????">abc????</option>\n</select>'
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.widgets_tests
Failed example:
w.render('nums', ['????????'], choices=[('????????', '??abc??????'), ('????', 'abc????')])
Expected:
u'<select multiple="multiple" name="nums">\n<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="\u0160\u0110\u0106\u017d\u0107\u017e\u0161\u0111" selected="selected">\u0160\u0110abc\u0106\u017d\u0107\u017e\u0161\u0111</option>\n<option value="\u0107\u017e\u0161\u0111">abc\u0107\u017e\u0161\u0111</option>\n</select>'
Got:
u'<select multiple="multiple" name="nums">\n<option value="1">1</option>\n<option value="2">2</option>\n<option value="3">3</option>\n<option value="????????" selected="selected">??abc??????</option>\n<option value="????">abc????</option>\n</select>'
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.widgets_tests
Failed example:
unicode(w.render('email', '????????', choices=[('????????', '??abc??????'), ('????', 'abc????')]))
Expected:
u'<ul>\n<li><label><input checked="checked" type="radio" name="email" value="\u0160\u0110\u0106\u017d\u0107\u017e\u0161\u0111" /> \u0160\u0110abc\u0106\u017d\u0107\u017e\u0161\u0111</label></li>\n<li><label><input type="radio" name="email" value="\u0107\u017e\u0161\u0111" /> abc\u0107\u017e\u0161\u0111</label></li>\n</ul>'
Got:
u'<ul>\n<li><label><input name="email" checked="checked" type="radio" value="????????" /> ??abc??????</label></li>\n<li><label><input name="email" type="radio" value="????" /> abc????</label></li>\n</ul>'
----------------------------------------------------------------------
File "/home/lsoto/src/django.svn.trunk/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.widgets_tests
Failed example:
w.render('nums', ['????????'], choices=[('????????', '??abc??????'), ('????', 'abc????')])
Expected:
u'<ul>\n<li><label><input type="checkbox" name="nums" value="1" /> 1</label></li>\n<li><label><input type="checkbox" name="nums" value="2" /> 2</label></li>\n<li><label><input type="checkbox" name="nums" value="3" /> 3</label></li>\n<li><label><input checked="checked" type="checkbox" name="nums" value="\u0160\u0110\u0106\u017d\u0107\u017e\u0161\u0111" /> \u0160\u0110abc\u0106\u017d\u0107\u017e\u0161\u0111</label></li>\n<li><label><input type="checkbox" name="nums" value="\u0107\u017e\u0161\u0111" /> abc\u0107\u017e\u0161\u0111</label></li>\n</ul>'
Got:
u'<ul>\n<li><label><input name="nums" type="checkbox" value="1" /> 1</label></li>\n<li><label><input name="nums" type="checkbox" value="2" /> 2</label></li>\n<li><label><input name="nums" type="checkbox" value="3" /> 3</label></li>\n<li><label><input name="nums" checked="checked" type="checkbox" value="????????" /> ??abc??????</label></li>\n<li><label><input name="nums" type="checkbox" value="????" /> abc????</label></li>\n</ul>'
----------------------------------------------------------------------
Ran 28 tests in 19.094s
FAILED (failures=8)
Destroying test database...