diff --git a/tests/decorators/tests.py b/tests/decorators/tests.py
index 2aaea49..66a98fa 100644
a
|
b
|
class DecoratorsTest(TestCase):
|
94 | 94 | callback = user_passes_test(test1)(callback) |
95 | 95 | callback = user_passes_test(test2)(callback) |
96 | 96 | |
97 | | class DummyUser(object): pass |
98 | | class DummyRequest(object): pass |
| 97 | class DummyUser(object): |
| 98 | pass |
| 99 | |
| 100 | class DummyRequest(object): |
| 101 | pass |
99 | 102 | |
100 | 103 | request = DummyRequest() |
101 | 104 | request.user = DummyUser() |
diff --git a/tests/forms_tests/tests/test_error_messages.py b/tests/forms_tests/tests/test_error_messages.py
index 2cfe6f3..818556c 100644
a
|
b
|
class FormsErrorMessagesTestCase(TestCase, AssertFormErrorsMixin):
|
224 | 224 | return self.as_divs() |
225 | 225 | |
226 | 226 | def as_divs(self): |
227 | | if not self: return '' |
| 227 | if not self: |
| 228 | return '' |
228 | 229 | return mark_safe('<div class="error">%s</div>' % ''.join('<p>%s</p>' % e for e in self)) |
229 | 230 | |
230 | 231 | # This form should print errors the default way. |
diff --git a/tests/forms_tests/tests/test_extra.py b/tests/forms_tests/tests/test_extra.py
index 136d113..f66241c 100644
a
|
b
|
class FormsExtraTestCase(TestCase, AssertFormErrorsMixin):
|
727 | 727 | return self.as_divs() |
728 | 728 | |
729 | 729 | def as_divs(self): |
730 | | if not self: return '' |
| 730 | if not self: |
| 731 | return '' |
731 | 732 | return '<div class="errorlist">%s</div>' % ''.join('<div class="error">%s</div>' % force_text(e) for e in self) |
732 | 733 | |
733 | 734 | class CommentForm(Form): |