def test_important(self): style = ReSTStyle(ReSTDocument()) style.start_important() style.end_important() self.assertEqual(style.doc.getvalue(), six.b('\n\n.. warning::\n\n \n\n'))