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

Method test_insert_write

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

Source from the content-addressed store, hash-verified

58 self.assertIsNone(doc.find_last_write('f'))
59
60 def test_insert_write(self):
61 doc = ReSTDocument()
62 self._write_array(doc, ['foo', 'bar'])
63 doc.insert_write(1, 'baz')
64 self.assertEqual(doc.getvalue(), b'foobazbar')
65
66 def test_include_doc_string(self):
67 doc = ReSTDocument()

Callers

nothing calls this directly

Calls 4

_write_arrayMethod · 0.95
insert_writeMethod · 0.95
getvalueMethod · 0.95
ReSTDocumentClass · 0.90

Tested by

no test coverage detected