def test_h1(self): style = ReSTStyle(ReSTDocument()) style.h1('foobar fiebaz') self.assertEqual( style.doc.getvalue(), six.b('\n\n*************\nfoobar fiebaz\n*************\n\n'))