def test_empty_italics(self): style = ReSTStyle(ReSTDocument()) style.start_i() style.end_i() self.assertEqual(style.doc.getvalue(), six.b(''))