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

Method test_find_last_write

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

Source from the content-addressed store, hash-verified

41 self.assertEqual(doc.getvalue(), b'foo\n')
42
43 def test_find_last_write(self):
44 doc = ReSTDocument()
45 self._write_array(doc, ['a', 'b', 'c', 'd', 'e'])
46 expected_index = 0
47 self.assertEqual(doc.find_last_write('a'), expected_index)
48
49 def test_find_last_write_duplicates(self):
50 doc = ReSTDocument()

Callers

nothing calls this directly

Calls 3

_write_arrayMethod · 0.95
find_last_writeMethod · 0.95
ReSTDocumentClass · 0.90

Tested by

no test coverage detected