MCPcopy Index your code
hub / github.com/aws/aws-cli / test_codeblock

Method test_codeblock

tests/unit/bcdoc/test_style.py:123–126  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

121 self.assertTrue(style.doc.keep_data)
122
123 def test_codeblock(self):
124 style = ReSTStyle(ReSTDocument())
125 style.codeblock('foobar')
126 self.assertEqual(style.doc.getvalue(), b'::\n\n foobar\n\n\n')
127
128 def test_important(self):
129 style = ReSTStyle(ReSTDocument())

Callers

nothing calls this directly

Calls 4

codeblockMethod · 0.95
ReSTStyleClass · 0.90
ReSTDocumentClass · 0.90
getvalueMethod · 0.45

Tested by

no test coverage detected