diff options
| author | Tim Graham <timograham@gmail.com> | 2013-10-22 09:31:43 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-10-22 09:51:39 -0400 |
| commit | 1597503a017a9ced422a81d314cb4097d53c3dfd (patch) | |
| tree | e5883611fb6d928482d24db1c4d796126250fef4 /tests/admin_util | |
| parent | 0d0f4f020afe516f23fd2305f13ff0a6a539b344 (diff) | |
Fixed E221 pep8 warnings.
Diffstat (limited to 'tests/admin_util')
| -rw-r--r-- | tests/admin_util/tests.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/admin_util/tests.py b/tests/admin_util/tests.py index 31bb412af4..915dfced08 100644 --- a/tests/admin_util/tests.py +++ b/tests/admin_util/tests.py @@ -22,7 +22,6 @@ from .models import Article, Count, Event, Location, EventGuide class NestedObjectsTests(TestCase): """ Tests for ``NestedObject`` utility collection. - """ def setUp(self): self.n = NestedObjects(using=DEFAULT_DB_ALIAS) @@ -295,7 +294,7 @@ class UtilTests(SimpleTestCase): # safestring should not be escaped class MyForm(forms.Form): text = forms.CharField(label=mark_safe('<i>text</i>')) - cb = forms.BooleanField(label=mark_safe('<i>cb</i>')) + cb = forms.BooleanField(label=mark_safe('<i>cb</i>')) form = MyForm() self.assertHTMLEqual(helpers.AdminField(form, 'text', is_first=False).label_tag(), @@ -306,7 +305,7 @@ class UtilTests(SimpleTestCase): # normal strings needs to be escaped class MyForm(forms.Form): text = forms.CharField(label='&text') - cb = forms.BooleanField(label='&cb') + cb = forms.BooleanField(label='&cb') form = MyForm() self.assertHTMLEqual(helpers.AdminField(form, 'text', is_first=False).label_tag(), |
