0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

fixup! Use assertTagInTemplateScript to test HTML declarations

This commit is contained in:
Matt Westcott 2017-02-28 11:30:12 +00:00 committed by Mikalai Radchuk
parent 217c839473
commit e34bde2e5d

View File

@ -1310,7 +1310,7 @@ class TestStructBlock(SimpleTestCase):
self.assertEqual(result, """<h1 lang="fr">Bonjour</h1><div class="rich-text">monde <i>italique</i></div>""")
class TestListBlock(SimpleTestCase, WagtailTestUtils):
class TestListBlock(WagtailTestUtils, SimpleTestCase):
def test_initialise_with_class(self):
block = blocks.ListBlock(blocks.CharBlock)
@ -1632,7 +1632,7 @@ class TestListBlock(SimpleTestCase, WagtailTestUtils):
self.assertIn('value="chocolate"', form_html)
class TestStreamBlock(SimpleTestCase, WagtailTestUtils):
class TestStreamBlock(WagtailTestUtils, SimpleTestCase):
def test_initialisation(self):
block = blocks.StreamBlock([
('heading', blocks.CharBlock()),