def test_not_bold(self): properties = RunProperties() properties.bold = False xml = properties.xml expected_xml = '<w:rPr />' self.assertEqual(xml, expected_xml)
def test_is_bold(self): properties = RunProperties() properties.bold = True xml = properties.xml expected_xml = '<w:rPr><w:b /></w:rPr>' self.assertEqual(xml, expected_xml)