MCPcopy Create free account
hub / github.com/aws/aws-cli / test_href_link

Method test_href_link

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

Source from the content-addressed store, hash-verified

182 self.assertEqual(style.doc.getvalue(), b'')
183
184 def test_href_link(self):
185 style = ReSTStyle(ReSTDocument())
186 style.start_a(attrs=[('href', 'http://example.org')])
187 style.doc.write('example')
188 style.end_a()
189 self.assertEqual(
190 style.doc.getvalue(), b'`example <http://example.org>`__ '
191 )
192
193 def test_escape_href_link(self):
194 style = ReSTStyle(ReSTDocument())

Callers

nothing calls this directly

Calls 6

start_aMethod · 0.95
end_aMethod · 0.95
ReSTStyleClass · 0.90
ReSTDocumentClass · 0.90
writeMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected