def test_write_py_doc_string(self): style = ReSTStyle(ReSTDocument()) docstring = ('This describes a function\n' ':param foo: Describes foo\n' 'returns: None') style.write_py_doc_string(docstring) self.assertEqual(style.doc.getvalue(), six.b(docstring + '\n'))
def test_write_py_doc_string(self): style = ReSTStyle(ReSTDocument()) docstring = ( 'This describes a function\n' ':param foo: Describes foo\n' 'returns: None' ) style.write_py_doc_string(docstring) self.assertEqual(style.doc.getvalue(), six.b(docstring + '\n'))