Skip to content

Instantly share code, notes, and snippets.

@cypreess
Created February 17, 2014 13:56
Show Gist options
  • Save cypreess/9050990 to your computer and use it in GitHub Desktop.
Save cypreess/9050990 to your computer and use it in GitHub Desktop.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 92, in test_charfield_1
self.assertRaisesMessage(ValidationError, "'This field is required.'", f.clean, None)
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'This\ field\ is\ required\.\'" does not match "['Ce champ est obligatoire.']"
======================================================================
FAIL: test_charfield_5 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Ce champ est obligatoire.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 127, in test_charfield_5
self.assertRaisesMessage(ValidationError, "'This field is required.'", f.clean, '')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'This\ field\ is\ required\.\'" does not match "['Ce champ est obligatoire.']"
======================================================================
FAIL: test_choicefield_1 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Ce champ est obligatoire.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 894, in test_choicefield_1
self.assertRaisesMessage(ValidationError, "'This field is required.'", f.clean, '')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'This\ field\ is\ required\.\'" does not match "['Ce champ est obligatoire.']"
======================================================================
FAIL: test_choicefield_2 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ["Sélectionnez un choix valide. 3 n'en fait pas partie."]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 906, in test_choicefield_2
self.assertRaisesMessage(ValidationError, "'Select a valid choice. 3 is not one of the available choices.'", f.clean, '3')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Select\ a\ valid\ choice\.\ 3\ is\ not\ one\ of\ the\ available\ choices\.\'" does not match "["Sélectionnez un choix valide. 3 n'en fait pas partie."]"
======================================================================
FAIL: test_choicefield_3 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ["Sélectionnez un choix valide. John n'en fait pas partie."]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 911, in test_choicefield_3
self.assertRaisesMessage(ValidationError, "'Select a valid choice. John is not one of the available choices.'", f.clean, 'John')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Select\ a\ valid\ choice\.\ John\ is\ not\ one\ of\ the\ available\ choices\.\'" does not match "["Sélectionnez un choix valide. John n'en fait pas partie."]"
======================================================================
FAIL: test_choicefield_4 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ["Sélectionnez un choix valide. 6 n'en fait pas partie."]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 921, in test_choicefield_4
self.assertRaisesMessage(ValidationError, "'Select a valid choice. 6 is not one of the available choices.'", f.clean, '6')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Select\ a\ valid\ choice\.\ 6\ is\ not\ one\ of\ the\ available\ choices\.\'" does not match "["Sélectionnez un choix valide. 6 n'en fait pas partie."]"
======================================================================
FAIL: test_combofield_1 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une adresse de courriel valide.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 1158, in test_combofield_1
self.assertRaisesMessage(ValidationError, "'Enter a valid email address.'", f.clean, 'not an email')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ valid\ email\ address\.\'" does not match "['Saisissez une adresse de courriel valide.']"
======================================================================
FAIL: test_combofield_2 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une adresse de courriel valide.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 1166, in test_combofield_2
self.assertRaisesMessage(ValidationError, "'Enter a valid email address.'", f.clean, 'not an email')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ valid\ email\ address\.\'" does not match "['Saisissez une adresse de courriel valide.']"
======================================================================
FAIL: test_datefield_1 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une date valide.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 437, in test_datefield_1
self.assertRaisesMessage(ValidationError, "'Enter a valid date.'", f.clean, '2006-4-31')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ valid\ date\.\'" does not match "['Saisissez une date valide.']"
======================================================================
FAIL: test_datefield_3 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une date valide.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 454, in test_datefield_3
self.assertRaisesMessage(ValidationError, "'Enter a valid date.'", f.clean, '2006-10-25')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ valid\ date\.\'" does not match "['Saisissez une date valide.']"
======================================================================
FAIL: test_datefield_4 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une date valide.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 467, in test_datefield_4
self.assertRaisesMessage(ValidationError, "'Enter a valid date.'", f.clean, ' ')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ valid\ date\.\'" does not match "['Saisissez une date valide.']"
======================================================================
FAIL: test_datefield_5 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une date valide.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 472, in test_datefield_5
self.assertRaisesMessage(ValidationError, "'Enter a valid date.'", f.clean, 'a\x00b')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ valid\ date\.\'" does not match "['Saisissez une date valide.']"
======================================================================
FAIL: test_datetimefield_1 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une date et une heure valides.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 548, in test_datetimefield_1
self.assertRaisesMessage(ValidationError, "'Enter a valid date/time.'", f.clean, 'hello')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ valid\ date\/time\.\'" does not match "['Saisissez une date et une heure valides.']"
======================================================================
FAIL: test_datetimefield_2 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une date et une heure valides.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 558, in test_datetimefield_2
self.assertRaisesMessage(ValidationError, "'Enter a valid date/time.'", f.clean, '2006-10-25 14:30:45')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ valid\ date\/time\.\'" does not match "['Saisissez une date et une heure valides.']"
======================================================================
FAIL: test_datetimefield_4 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une date et une heure valides.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 577, in test_datetimefield_4
self.assertRaisesMessage(ValidationError, "'Enter a valid date/time.'", f.clean, ' ')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ valid\ date\/time\.\'" does not match "['Saisissez une date et une heure valides.']"
======================================================================
FAIL: test_decimalfield_1 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Ce champ est obligatoire.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 312, in test_decimalfield_1
self.assertRaisesMessage(ValidationError, "'This field is required.'", f.clean, '')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'This\ field\ is\ required\.\'" does not match "['Ce champ est obligatoire.']"
======================================================================
FAIL: test_decimalfield_3 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Assurez-vous que cette valeur est inférieure ou égale à 1.5.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 358, in test_decimalfield_3
self.assertRaisesMessage(ValidationError, "'Ensure this value is less than or equal to 1.5.'", f.clean, '1.6')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Ensure\ this\ value\ is\ less\ than\ or\ equal\ to\ 1\.5\.\'" does not match "['Assurez-vous que cette valeur est inférieure ou égale à 1.5.']"
======================================================================
FAIL: test_emailfield_1 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Ce champ est obligatoire.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 650, in test_emailfield_1
self.assertRaisesMessage(ValidationError, "'This field is required.'", f.clean, '')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'This\ field\ is\ required\.\'" does not match "['Ce champ est obligatoire.']"
======================================================================
FAIL: test_emailfield_not_required (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une adresse de courriel valide.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 670, in test_emailfield_not_required
self.assertRaisesMessage(ValidationError, "'Enter a valid email address.'", f.clean, 'foo')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ valid\ email\ address\.\'" does not match "['Saisissez une adresse de courriel valide.']"
======================================================================
FAIL: test_filefield_1 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Ce champ est obligatoire.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 683, in test_filefield_1
self.assertRaisesMessage(ValidationError, "'This field is required.'", f.clean, '')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'This\ field\ is\ required\.\'" does not match "['Ce champ est obligatoire.']"
======================================================================
FAIL: test_filepathfield_2 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ["Sélectionnez un choix valide. fields.py n'en fait pas partie."]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 1196, in test_filepathfield_2
self.assertRaisesMessage(ValidationError, "'Select a valid choice. fields.py is not one of the available choices.'", f.clean, 'fields.py')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Select\ a\ valid\ choice\.\ fields\.py\ is\ not\ one\ of\ the\ available\ choices\.\'" does not match "["Sélectionnez un choix valide. fields.py n'en fait pas partie."]"
======================================================================
FAIL: test_floatfield_1 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Ce champ est obligatoire.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 248, in test_floatfield_1
self.assertRaisesMessage(ValidationError, "'This field is required.'", f.clean, '')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'This\ field\ is\ required\.\'" does not match "['Ce champ est obligatoire.']"
======================================================================
FAIL: test_floatfield_3 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Assurez-vous que cette valeur est inférieure ou égale à 1.5.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 278, in test_floatfield_3
self.assertRaisesMessage(ValidationError, "'Ensure this value is less than or equal to 1.5.'", f.clean, '1.6')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Ensure\ this\ value\ is\ less\ than\ or\ equal\ to\ 1\.5\.\'" does not match "['Assurez-vous que cette valeur est inférieure ou égale à 1.5.']"
======================================================================
FAIL: test_integerfield_1 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Ce champ est obligatoire.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 165, in test_integerfield_1
self.assertRaisesMessage(ValidationError, "'This field is required.'", f.clean, '')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'This\ field\ is\ required\.\'" does not match "['Ce champ est obligatoire.']"
======================================================================
FAIL: test_integerfield_2 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cypreess/dev/django/django/forms/fields.py", line 256, in to_python
value = int(str(value))
ValueError: invalid literal for int() with base 10: 'a'
During handling of the above exception, another exception occurred:
django.core.exceptions.ValidationError: ['Saisissez un nombre entier.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 189, in test_integerfield_2
self.assertRaisesMessage(ValidationError, "'Enter a whole number.'", f.clean, 'a')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ whole\ number\.\'" does not match "['Saisissez un nombre entier.']"
======================================================================
FAIL: test_integerfield_3 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Ce champ est obligatoire.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 200, in test_integerfield_3
self.assertRaisesMessage(ValidationError, "'This field is required.'", f.clean, None)
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'This\ field\ is\ required\.\'" does not match "['Ce champ est obligatoire.']"
======================================================================
FAIL: test_integerfield_4 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Ce champ est obligatoire.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 212, in test_integerfield_4
self.assertRaisesMessage(ValidationError, "'This field is required.'", f.clean, None)
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'This\ field\ is\ required\.\'" does not match "['Ce champ est obligatoire.']"
======================================================================
FAIL: test_integerfield_5 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Ce champ est obligatoire.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 224, in test_integerfield_5
self.assertRaisesMessage(ValidationError, "'This field is required.'", f.clean, None)
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'This\ field\ is\ required\.\'" does not match "['Ce champ est obligatoire.']"
======================================================================
FAIL: test_multiplechoicefield_1 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Ce champ est obligatoire.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 1041, in test_multiplechoicefield_1
self.assertRaisesMessage(ValidationError, "'This field is required.'", f.clean, '')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'This\ field\ is\ required\.\'" does not match "['Ce champ est obligatoire.']"
======================================================================
FAIL: test_multiplechoicefield_2 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une liste de valeurs.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 1062, in test_multiplechoicefield_2
self.assertRaisesMessage(ValidationError, "'Enter a list of values.'", f.clean, 'hello')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ list\ of\ values\.\'" does not match "['Saisissez une liste de valeurs.']"
======================================================================
FAIL: test_multiplechoicefield_3 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ["Sélectionnez un choix valide. 6 n'en fait pas partie."]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 1075, in test_multiplechoicefield_3
self.assertRaisesMessage(ValidationError, "'Select a valid choice. 6 is not one of the available choices.'", f.clean, ['6'])
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Select\ a\ valid\ choice\.\ 6\ is\ not\ one\ of\ the\ available\ choices\.\'" does not match "["Sélectionnez un choix valide. 6 n'en fait pas partie."]"
======================================================================
FAIL: test_regexfield_1 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une valeur valide.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 595, in test_regexfield_1
self.assertRaisesMessage(ValidationError, "'Enter a valid value.'", f.clean, '3G3')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ valid\ value\.\'" does not match "['Saisissez une valeur valide.']"
======================================================================
FAIL: test_regexfield_2 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une valeur valide.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 604, in test_regexfield_2
self.assertRaisesMessage(ValidationError, "'Enter a valid value.'", f.clean, '3G3')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ valid\ value\.\'" does not match "['Saisissez une valeur valide.']"
======================================================================
FAIL: test_regexfield_3 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une valeur valide.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 611, in test_regexfield_3
self.assertRaisesMessage(ValidationError, "'Enter a valid value.'", f.clean, '3G3')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ valid\ value\.\'" does not match "['Saisissez une valeur valide.']"
======================================================================
FAIL: test_regexfield_5 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Ensure this value has at least 5 characters (it has 3).', 'Saisissez une valeur valide.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 624, in test_regexfield_5
six.assertRaisesRegex(self, ValidationError, "'Ensure this value has at least 5 characters \(it has 3\)\.', u?'Enter a valid value\.'", f.clean, 'abc')
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "'Ensure this value has at least 5 characters \(it has 3\)\.', u?'Enter a valid value\.'" does not match "['Ensure this value has at least 5 characters (it has 3).', 'Saisissez une valeur valide.']"
======================================================================
FAIL: test_splitdatetimefield_1 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Ce champ est obligatoire.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 1272, in test_splitdatetimefield_1
self.assertRaisesMessage(ValidationError, "'This field is required.'", f.clean, None)
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'This\ field\ is\ required\.\'" does not match "['Ce champ est obligatoire.']"
======================================================================
FAIL: test_splitdatetimefield_2 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une liste de valeurs.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 1287, in test_splitdatetimefield_2
self.assertRaisesMessage(ValidationError, "'Enter a list of values.'", f.clean, 'hello')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ list\ of\ values\.\'" does not match "['Saisissez une liste de valeurs.']"
======================================================================
FAIL: test_timefield_1 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une heure valide.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 498, in test_timefield_1
self.assertRaisesMessage(ValidationError, "'Enter a valid time.'", f.clean, 'hello')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ valid\ time\.\'" does not match "['Saisissez une heure valide.']"
======================================================================
FAIL: test_timefield_2 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une heure valide.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 507, in test_timefield_2
self.assertRaisesMessage(ValidationError, "'Enter a valid time.'", f.clean, '14:30:45')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ valid\ time\.\'" does not match "['Saisissez une heure valide.']"
======================================================================
FAIL: test_timefield_3 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une heure valide.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 514, in test_timefield_3
self.assertRaisesMessage(ValidationError, "'Enter a valid time.'", f.clean, ' ')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ valid\ time\.\'" does not match "['Saisissez une heure valide.']"
======================================================================
FAIL: test_typedchoicefield_1 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ["Sélectionnez un choix valide. 2 n'en fait pas partie."]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 930, in test_typedchoicefield_1
self.assertRaisesMessage(ValidationError, "'Select a valid choice. 2 is not one of the available choices.'", f.clean, '2')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Select\ a\ valid\ choice\.\ 2\ is\ not\ one\ of\ the\ available\ choices\.\'" does not match "["Sélectionnez un choix valide. 2 n'en fait pas partie."]"
======================================================================
FAIL: test_typedchoicefield_4 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cypreess/dev/django/django/forms/fields.py", line 847, in _coerce
value = self.coerce(value)
ValueError: invalid literal for int() with base 10: 'B'
During handling of the above exception, another exception occurred:
django.core.exceptions.ValidationError: ["Sélectionnez un choix valide. B n'en fait pas partie."]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 946, in test_typedchoicefield_4
self.assertRaisesMessage(ValidationError, "'Select a valid choice. B is not one of the available choices.'", f.clean, 'B')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Select\ a\ valid\ choice\.\ B\ is\ not\ one\ of\ the\ available\ choices\.\'" does not match "["Sélectionnez un choix valide. B n'en fait pas partie."]"
======================================================================
FAIL: test_typedchoicefield_special_coerce (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Ce champ est obligatoire.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 976, in test_typedchoicefield_special_coerce
"'This field is required.'", f.clean, '')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'This\ field\ is\ required\.\'" does not match "['Ce champ est obligatoire.']"
======================================================================
FAIL: test_typedmultiplechoicefield_1 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ["Sélectionnez un choix valide. 2 n'en fait pas partie."]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 1095, in test_typedmultiplechoicefield_1
self.assertRaisesMessage(ValidationError, "'Select a valid choice. 2 is not one of the available choices.'", f.clean, ['2'])
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Select\ a\ valid\ choice\.\ 2\ is\ not\ one\ of\ the\ available\ choices\.\'" does not match "["Sélectionnez un choix valide. 2 n'en fait pas partie."]"
======================================================================
FAIL: test_typedmultiplechoicefield_4 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ["Sélectionnez un choix valide. 2 n'en fait pas partie."]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 1110, in test_typedmultiplechoicefield_4
self.assertRaisesMessage(ValidationError, "'Select a valid choice. 2 is not one of the available choices.'", f.clean, ['1', '2'])
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Select\ a\ valid\ choice\.\ 2\ is\ not\ one\ of\ the\ available\ choices\.\'" does not match "["Sélectionnez un choix valide. 2 n'en fait pas partie."]"
======================================================================
FAIL: test_typedmultiplechoicefield_5 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cypreess/dev/django/django/forms/fields.py", line 919, in _coerce
new_value.append(self.coerce(choice))
ValueError: invalid literal for int() with base 10: 'B'
During handling of the above exception, another exception occurred:
django.core.exceptions.ValidationError: ["Sélectionnez un choix valide. B n'en fait pas partie."]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 1116, in test_typedmultiplechoicefield_5
self.assertRaisesMessage(ValidationError, "'Select a valid choice. B is not one of the available choices.'", f.clean, ['B'])
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Select\ a\ valid\ choice\.\ B\ is\ not\ one\ of\ the\ available\ choices\.\'" does not match "["Sélectionnez un choix valide. B n'en fait pas partie."]"
======================================================================
FAIL: test_typedmultiplechoicefield_special_coerce (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Ce champ est obligatoire.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 1147, in test_typedmultiplechoicefield_special_coerce
"'This field is required.'", f.clean, [])
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'This\ field\ is\ required\.\'" does not match "['Ce champ est obligatoire.']"
======================================================================
FAIL: test_url_regex_ticket11198 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une URL valide.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 769, in test_url_regex_ticket11198
self.assertRaisesMessage(ValidationError, "'Enter a valid URL.'", f.clean, 'http://%s' % ("X" * 200,))
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ valid\ URL\.\'" does not match "['Saisissez une URL valide.']"
======================================================================
FAIL: test_urlfield_1 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Ce champ est obligatoire.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 738, in test_urlfield_1
self.assertRaisesMessage(ValidationError, "'This field is required.'", f.clean, '')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'This\ field\ is\ required\.\'" does not match "['Ce champ est obligatoire.']"
======================================================================
FAIL: test_urlfield_2 (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une URL valide.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 781, in test_urlfield_2
self.assertRaisesMessage(ValidationError, "'Enter a valid URL.'", f.clean, 'foo')
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ valid\ URL\.\'" does not match "['Saisissez une URL valide.']"
======================================================================
FAIL: test_urlfield_not_string (forms_tests.tests.test_fields.FieldsTests)
----------------------------------------------------------------------
django.core.exceptions.ValidationError: ['Saisissez une URL valide.']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/forms_tests/tests/test_fields.py", line 844, in test_urlfield_not_string
self.assertRaisesMessage(ValidationError, "'Enter a valid URL.'", f.clean, 23)
File "/Users/cypreess/dev/django/django/test/testcases.py", line 576, in assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/Users/cypreess/dev/django/django/utils/six.py", line 654, in assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\'Enter\ a\ valid\ URL\.\'" does not match "['Saisissez une URL valide.']"
======================================================================
FAIL: test_circular_dependency (logging_tests.tests.SettingsConfigTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/logging_tests/tests.py", line 335, in test_circular_dependency
self.assertNoOutput(err)
File "/Users/cypreess/dev/django/tests/admin_scripts/tests.py", line 186, in assertNoOutput
self.assertEqual(len(stream), 0, "Stream should be empty: actually contains '%s'" % stream)
AssertionError: 1080 != 0 : Stream should be empty: actually contains 'Traceback (most recent call last):
File "/Users/cypreess/dev/django/django/apps/config.py", line 114, in create
cls = getattr(mod, cls_name)
AttributeError: 'module' object has no attribute 'auth'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/Users/cypreess/dev/django/django/core/management/__init__.py", line 427, in execute_from_command_line
utility.execute()
File "/Users/cypreess/dev/django/django/core/management/__init__.py", line 391, in execute
django.setup()
File "/Users/cypreess/dev/django/django/__init__.py", line 21, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/cypreess/dev/django/django/apps/registry.py", line 84, in populate
app_config = AppConfig.create(entry)
File "/Users/cypreess/dev/django/django/apps/config.py", line 120, in create
"cannot import name '%s' from '%s'" % (cls_name, mod_path))
ImportError: cannot import name 'auth' from 'django.contrib'
'
======================================================================
FAIL: test_all_options_given (test_runner.tests.CustomTestRunnerOptionsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/test_runner/tests.py", line 205, in test_all_options_given
self.assertNoOutput(err)
File "/Users/cypreess/dev/django/tests/admin_scripts/tests.py", line 186, in assertNoOutput
self.assertEqual(len(stream), 0, "Stream should be empty: actually contains '%s'" % stream)
AssertionError: 1124 != 0 : Stream should be empty: actually contains 'Traceback (most recent call last):
File "/Users/cypreess/dev/django/django/apps/config.py", line 114, in create
cls = getattr(mod, cls_name)
AttributeError: 'module' object has no attribute 'auth'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/django/bin/django-admin.py", line 5, in <module>
management.execute_from_command_line()
File "/Users/cypreess/dev/django/django/core/management/__init__.py", line 427, in execute_from_command_line
utility.execute()
File "/Users/cypreess/dev/django/django/core/management/__init__.py", line 391, in execute
django.setup()
File "/Users/cypreess/dev/django/django/__init__.py", line 21, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/cypreess/dev/django/django/apps/registry.py", line 84, in populate
app_config = AppConfig.create(entry)
File "/Users/cypreess/dev/django/django/apps/config.py", line 120, in create
"cannot import name '%s' from '%s'" % (cls_name, mod_path))
ImportError: cannot import name 'auth' from 'django.contrib'
'
======================================================================
FAIL: test_default_and_given_options (test_runner.tests.CustomTestRunnerOptionsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/test_runner/tests.py", line 192, in test_default_and_given_options
self.assertNoOutput(err)
File "/Users/cypreess/dev/django/tests/admin_scripts/tests.py", line 186, in assertNoOutput
self.assertEqual(len(stream), 0, "Stream should be empty: actually contains '%s'" % stream)
AssertionError: 1124 != 0 : Stream should be empty: actually contains 'Traceback (most recent call last):
File "/Users/cypreess/dev/django/django/apps/config.py", line 114, in create
cls = getattr(mod, cls_name)
AttributeError: 'module' object has no attribute 'auth'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/django/bin/django-admin.py", line 5, in <module>
management.execute_from_command_line()
File "/Users/cypreess/dev/django/django/core/management/__init__.py", line 427, in execute_from_command_line
utility.execute()
File "/Users/cypreess/dev/django/django/core/management/__init__.py", line 391, in execute
django.setup()
File "/Users/cypreess/dev/django/django/__init__.py", line 21, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/cypreess/dev/django/django/apps/registry.py", line 84, in populate
app_config = AppConfig.create(entry)
File "/Users/cypreess/dev/django/django/apps/config.py", line 120, in create
"cannot import name '%s' from '%s'" % (cls_name, mod_path))
ImportError: cannot import name 'auth' from 'django.contrib'
'
======================================================================
FAIL: test_default_options (test_runner.tests.CustomTestRunnerOptionsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/test_runner/tests.py", line 186, in test_default_options
self.assertNoOutput(err)
File "/Users/cypreess/dev/django/tests/admin_scripts/tests.py", line 186, in assertNoOutput
self.assertEqual(len(stream), 0, "Stream should be empty: actually contains '%s'" % stream)
AssertionError: 1124 != 0 : Stream should be empty: actually contains 'Traceback (most recent call last):
File "/Users/cypreess/dev/django/django/apps/config.py", line 114, in create
cls = getattr(mod, cls_name)
AttributeError: 'module' object has no attribute 'auth'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/django/bin/django-admin.py", line 5, in <module>
management.execute_from_command_line()
File "/Users/cypreess/dev/django/django/core/management/__init__.py", line 427, in execute_from_command_line
utility.execute()
File "/Users/cypreess/dev/django/django/core/management/__init__.py", line 391, in execute
django.setup()
File "/Users/cypreess/dev/django/django/__init__.py", line 21, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/cypreess/dev/django/django/apps/registry.py", line 84, in populate
app_config = AppConfig.create(entry)
File "/Users/cypreess/dev/django/django/apps/config.py", line 120, in create
"cannot import name '%s' from '%s'" % (cls_name, mod_path))
ImportError: cannot import name 'auth' from 'django.contrib'
'
======================================================================
FAIL: test_option_name_and_value_separated (test_runner.tests.CustomTestRunnerOptionsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/test_runner/tests.py", line 198, in test_option_name_and_value_separated
self.assertNoOutput(err)
File "/Users/cypreess/dev/django/tests/admin_scripts/tests.py", line 186, in assertNoOutput
self.assertEqual(len(stream), 0, "Stream should be empty: actually contains '%s'" % stream)
AssertionError: 1124 != 0 : Stream should be empty: actually contains 'Traceback (most recent call last):
File "/Users/cypreess/dev/django/django/apps/config.py", line 114, in create
cls = getattr(mod, cls_name)
AttributeError: 'module' object has no attribute 'auth'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cypreess/dev/django/django/bin/django-admin.py", line 5, in <module>
management.execute_from_command_line()
File "/Users/cypreess/dev/django/django/core/management/__init__.py", line 427, in execute_from_command_line
utility.execute()
File "/Users/cypreess/dev/django/django/core/management/__init__.py", line 391, in execute
django.setup()
File "/Users/cypreess/dev/django/django/__init__.py", line 21, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/cypreess/dev/django/django/apps/registry.py", line 84, in populate
app_config = AppConfig.create(entry)
File "/Users/cypreess/dev/django/django/apps/config.py", line 120, in create
"cannot import name '%s' from '%s'" % (cls_name, mod_path))
ImportError: cannot import name 'auth' from 'django.contrib'
'
======================================================================
FAIL: test_runner_deprecation_verbosity_default (test_runner.tests.DeprecationDisplayTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/test_runner/tests.py", line 370, in test_runner_deprecation_verbosity_default
self.assertIn("Ran 1 test", err)
AssertionError: 'Ran 1 test' not found in 'Traceback (most recent call last):\n File "/Users/cypreess/dev/django/django/apps/config.py", line 114, in create\n cls = getattr(mod, cls_name)\nAttributeError: \'module\' object has no attribute \'auth\'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/Users/cypreess/dev/django/django/bin/django-admin.py", line 5, in <module>\n management.execute_from_command_line()\n File "/Users/cypreess/dev/django/django/core/management/__init__.py", line 427, in execute_from_command_line\n utility.execute()\n File "/Users/cypreess/dev/django/django/core/management/__init__.py", line 391, in execute\n django.setup()\n File "/Users/cypreess/dev/django/django/__init__.py", line 21, in setup\n apps.populate(settings.INSTALLED_APPS)\n File "/Users/cypreess/dev/django/django/apps/registry.py", line 84, in populate\n app_config = AppConfig.create(entry)\n File "/Users/cypreess/dev/django/django/apps/config.py", line 120, in create\n "cannot import name \'%s\' from \'%s\'" % (cls_name, mod_path))\nImportError: cannot import name \'auth\' from \'django.contrib\'\n'
======================================================================
FAIL: test_runner_deprecation_verbosity_zero (test_runner.tests.DeprecationDisplayTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/test_runner/tests.py", line 377, in test_runner_deprecation_verbosity_zero
self.assertIn("Ran 1 test", err)
AssertionError: 'Ran 1 test' not found in 'Traceback (most recent call last):\n File "/Users/cypreess/dev/django/django/apps/config.py", line 114, in create\n cls = getattr(mod, cls_name)\nAttributeError: \'module\' object has no attribute \'auth\'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/Users/cypreess/dev/django/django/bin/django-admin.py", line 5, in <module>\n management.execute_from_command_line()\n File "/Users/cypreess/dev/django/django/core/management/__init__.py", line 427, in execute_from_command_line\n utility.execute()\n File "/Users/cypreess/dev/django/django/core/management/__init__.py", line 391, in execute\n django.setup()\n File "/Users/cypreess/dev/django/django/__init__.py", line 21, in setup\n apps.populate(settings.INSTALLED_APPS)\n File "/Users/cypreess/dev/django/django/apps/registry.py", line 84, in populate\n app_config = AppConfig.create(entry)\n File "/Users/cypreess/dev/django/django/apps/config.py", line 120, in create\n "cannot import name \'%s\' from \'%s\'" % (cls_name, mod_path))\nImportError: cannot import name \'auth\' from \'django.contrib\'\n'
======================================================================
FAIL: test_ticket_17477 (test_runner.tests.Ticket17477RegressionTests)
'manage.py help test' works after r16352.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cypreess/dev/django/tests/test_runner/tests.py", line 220, in test_ticket_17477
self.assertNoOutput(err)
File "/Users/cypreess/dev/django/tests/admin_scripts/tests.py", line 186, in assertNoOutput
self.assertEqual(len(stream), 0, "Stream should be empty: actually contains '%s'" % stream)
AssertionError: 1080 != 0 : Stream should be empty: actually contains 'Traceback (most recent call last):
File "/Users/cypreess/dev/django/django/apps/config.py", line 114, in create
cls = getattr(mod, cls_name)
AttributeError: 'module' object has no attribute 'auth'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/Users/cypreess/dev/django/django/core/management/__init__.py", line 427, in execute_from_command_line
utility.execute()
File "/Users/cypreess/dev/django/django/core/management/__init__.py", line 391, in execute
django.setup()
File "/Users/cypreess/dev/django/django/__init__.py", line 21, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/cypreess/dev/django/django/apps/registry.py", line 84, in populate
app_config = AppConfig.create(entry)
File "/Users/cypreess/dev/django/django/apps/config.py", line 120, in create
"cannot import name '%s' from '%s'" % (cls_name, mod_path))
ImportError: cannot import name 'auth' from 'django.contrib'
'
----------------------------------------------------------------------
Ran 6835 tests in 400.818s
FAILED (failures=156, errors=145, skipped=591, expected failures=7)
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment