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

Method test_add_links

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

Source from the content-addressed store, hash-verified

76 self.assertEqual(doc.getvalue(), b'foo\n')
77
78 def test_add_links(self):
79 doc = ReSTDocument()
80 doc.hrefs['foo'] = 'https://example.com/'
81 self.assertEqual(
82 doc.getvalue(), b'\n\n.. _foo: https://example.com/\n'
83 )
84
85
86class TestDocumentStructure(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

getvalueMethod · 0.95
ReSTDocumentClass · 0.90

Tested by

no test coverage detected