Example #1
0
    def test_not_bold(self):
        properties = RunProperties()
        properties.bold = False

        xml = properties.xml
        expected_xml = '<w:rPr />'
        self.assertEqual(xml, expected_xml)
Example #2
0
 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)