From a3fe4addcb9063fc327c8609c7ebba4d531da4ce Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 3 Sep 2015 14:47:40 -0400 Subject: Refs #23162 -- Removed forms.Field._has_changed() method. Per deprecation timeline. --- tests/forms_tests/tests/test_fields.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'tests/forms_tests') diff --git a/tests/forms_tests/tests/test_fields.py b/tests/forms_tests/tests/test_fields.py index a2caf7ea0c..42e7bc91f7 100644 --- a/tests/forms_tests/tests/test_fields.py +++ b/tests/forms_tests/tests/test_fields.py @@ -44,10 +44,9 @@ from django.forms import ( Textarea, TextInput, TimeField, TypedChoiceField, TypedMultipleChoiceField, URLField, UUIDField, ValidationError, Widget, forms, ) -from django.test import SimpleTestCase, ignore_warnings +from django.test import SimpleTestCase from django.utils import formats, six, translation from django.utils._os import upath -from django.utils.deprecation import RemovedInDjango110Warning from django.utils.duration import duration_string try: @@ -568,14 +567,11 @@ class FieldsTests(SimpleTestCase): f = DateField() self.assertRaisesMessage(ValidationError, "'Enter a valid date.'", f.clean, 'a\x00b') - @ignore_warnings(category=RemovedInDjango110Warning) # for _has_changed def test_datefield_changed(self): format = '%d/%m/%Y' f = DateField(input_formats=[format]) d = datetime.date(2007, 9, 17) self.assertFalse(f.has_changed(d, '17/09/2007')) - # Test for deprecated behavior _has_changed - self.assertFalse(f._has_changed(d, '17/09/2007')) def test_datefield_strptime(self): """Test that field.strptime doesn't raise an UnicodeEncodeError (#16123)""" -- cgit v1.3