diff --git a/tests/forms_tests/tests/test_util.py b/tests/forms_tests/tests/test_util.py
index 5f0b549..90406fc 100644
a
|
b
|
|
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | from __future__ import unicode_literals |
3 | 3 | |
| 4 | from copy import deepcopy |
| 5 | |
4 | 6 | from django.core.exceptions import ValidationError |
5 | 7 | from django.forms.utils import flatatt, ErrorDict, ErrorList |
6 | 8 | from django.test import TestCase |
… |
… |
class FormsUtilTestCase(TestCase):
|
66 | 68 | '<ul class="errorlist"><li>nameExample of link: <a href="http://www.example.com/">example</a></li></ul>') |
67 | 69 | self.assertHTMLEqual(str(ErrorDict({'name': mark_safe(example)})), |
68 | 70 | '<ul class="errorlist"><li>nameExample of link: <a href="http://www.example.com/">example</a></li></ul>') |
| 71 | |
| 72 | def test_error_dict_deepcopy(self): |
| 73 | e = ErrorDict() |
| 74 | e['__all__'] = ErrorList(['message']) |
| 75 | |
| 76 | e_copy = deepcopy(e) |
| 77 | self.assertEqual(e, e_copy) |