Example #1
0
 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'))
Example #2
0
 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'))