def test_non_empty_sxs_has_children(self): sxs = { 'label': '204-2-a', 'children': [{ 'title': 'abc' }], 'paragraphs': [] } self.assertTrue(notices.non_empty_sxs(sxs))
def test_non_empty_sxs_no_paragraph(self): sxs = {'label': '204-2-a', 'children': [], 'paragraphs': []} self.assertFalse(notices.non_empty_sxs(sxs))
def test_non_empty_sxs_has_children(self): sxs = {"label": "204-2-a", "children": [{"title": "abc"}], "paragraphs": []} self.assertTrue(notices.non_empty_sxs(sxs))
def test_non_empty_sxs(self): sxs = {'label': '204-2-a', 'children': [], 'paragraphs': ['abc']} self.assertTrue(notices.non_empty_sxs(sxs))
def test_non_empty_sxs_no_paragraph(self): sxs = {"label": "204-2-a", "children": [], "paragraphs": []} self.assertFalse(notices.non_empty_sxs(sxs))
def test_non_empty_sxs(self): sxs = {"label": "204-2-a", "children": [], "paragraphs": ["abc"]} self.assertTrue(notices.non_empty_sxs(sxs))
def test_non_empty_sxs_has_children(self): sxs = { 'label': '204-2-a', 'children': [{'title': 'abc'}], 'paragraphs': []} self.assertTrue(notices.non_empty_sxs(sxs))