MCPcopy
hub / github.com/aws/aws-cli / test_remove_doc_string

Method test_remove_doc_string

tests/unit/bcdoc/test_document.py:71–76  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 self.assertEqual(doc.getvalue(), b'\n\nthis is a ``test`` \n\n')
70
71 def test_remove_doc_string(self):
72 doc = ReSTDocument()
73 doc.writeln('foo')
74 doc.include_doc_string('<p>this is a <code>test</code></p>')
75 doc.remove_last_doc_string()
76 self.assertEqual(doc.getvalue(), b'foo\n')
77
78 def test_add_links(self):
79 doc = ReSTDocument()

Callers

nothing calls this directly

Calls 5

writelnMethod · 0.95
include_doc_stringMethod · 0.95
getvalueMethod · 0.95
ReSTDocumentClass · 0.90

Tested by

no test coverage detected