From 217c839473c9cb7cf5517f0357f7a7e97a7e3891 Mon Sep 17 00:00:00 2001 From: Matt Westcott <matt@west.co.tt> Date: Tue, 28 Feb 2017 11:29:19 +0000 Subject: [PATCH] fixup! Use appropriate assertInHTML / assertTagInHTML variants for FieldBlock tests --- wagtail/wagtailcore/tests/test_blocks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wagtail/wagtailcore/tests/test_blocks.py b/wagtail/wagtailcore/tests/test_blocks.py index 27bae6fc27..82c678b98b 100644 --- a/wagtail/wagtailcore/tests/test_blocks.py +++ b/wagtail/wagtailcore/tests/test_blocks.py @@ -51,7 +51,7 @@ class ContextCharBlock(blocks.CharBlock): return super(blocks.CharBlock, self).get_context(value, parent_context) -class TestFieldBlock(SimpleTestCase, WagtailTestUtils): +class TestFieldBlock(WagtailTestUtils, SimpleTestCase): def test_charfield_render(self): block = blocks.CharBlock() html = block.render("Hello world!") @@ -449,7 +449,7 @@ class TestRichTextBlock(TestCase): self.assertEqual(result.source, '') -class TestChoiceBlock(SimpleTestCase, WagtailTestUtils): +class TestChoiceBlock(WagtailTestUtils, SimpleTestCase): def setUp(self): from django.db.models.fields import BLANK_CHOICE_DASH self.blank_choice_dash_label = BLANK_CHOICE_DASH[0][1]