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

Method test_code

tests/unit/botocore/docs/bcdoc/test_style.py:73–76  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

71 self.assertEqual(style.doc.getvalue(), b'\n\nfoo\n\n')
72
73 def test_code(self):
74 style = ReSTStyle(ReSTDocument())
75 style.code('foobar')
76 self.assertEqual(style.doc.getvalue(), b'``foobar`` ')
77
78 def test_empty_code(self):
79 style = ReSTStyle(ReSTDocument())

Callers

nothing calls this directly

Calls 4

codeMethod · 0.95
ReSTStyleClass · 0.90
ReSTDocumentClass · 0.90
getvalueMethod · 0.45

Tested by

no test coverage detected