def test_set_title(self):
     s = Section('== section ==\ntext.')
     s.title = ' newtitle '
     self.assertEqual(' newtitle ', s.title)
 def test_lead_set_title(self):
     s = Section('lead text')
     s.title = ' newtitle '
Beispiel #3
0
def test_set_title():
    s = Section('== section ==\ntext.')
    s.title = ' newtitle '
    assert ' newtitle ' == s.title