diff options
| author | Claude Paroz <claude@2xlibre.net> | 2017-01-20 15:24:05 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2017-01-20 15:43:28 +0100 |
| commit | 289fc1bfa54af563d17549ade8d77553711453a1 (patch) | |
| tree | a7348f616bf5938381a7f1005dea422b8dea7c9d /tests/forms_tests | |
| parent | 7aba69145dcb436539a7798086748b73a39121e5 (diff) | |
Refs #23919 -- Removed str_prefix usage
Diffstat (limited to 'tests/forms_tests')
| -rw-r--r-- | tests/forms_tests/tests/test_forms.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/forms_tests/tests/test_forms.py b/tests/forms_tests/tests/test_forms.py index dc70519dac..98c5ee8783 100644 --- a/tests/forms_tests/tests/test_forms.py +++ b/tests/forms_tests/tests/test_forms.py @@ -19,7 +19,6 @@ from django.forms.utils import ErrorList from django.http import QueryDict from django.template import Context, Template from django.test import SimpleTestCase -from django.test.utils import str_prefix from django.utils.datastructures import MultiValueDict from django.utils.encoding import force_text from django.utils.html import format_html @@ -2519,9 +2518,7 @@ Password: <input type="password" name="password" required /> # Case 3: POST with valid data (the success message).) self.assertEqual( my_function('POST', {'username': 'adrian', 'password1': 'secret', 'password2': 'secret'}), - str_prefix( - "VALID: [('password1', %(_)s'secret'), ('password2', %(_)s'secret'), ('username', %(_)s'adrian')]" - ) + "VALID: [('password1', 'secret'), ('password2', 'secret'), ('username', 'adrian')]" ) def test_templates_with_forms(self): |
