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

Method test_seek

tests/unit/s3transfer/test_upload.py:145–150  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

143 reader.read()
144
145 def test_seek(self):
146 with open(self.filename, 'rb') as f:
147 reader = InterruptReader(f, self.transfer_coordinator)
148 # Ensure it can seek correctly
149 reader.seek(1)
150 self.assertEqual(reader.read(1), self.content[1:2])
151
152 def test_tell(self):
153 with open(self.filename, 'rb') as f:

Callers

nothing calls this directly

Calls 3

seekMethod · 0.95
readMethod · 0.95
InterruptReaderClass · 0.90

Tested by

no test coverage detected