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

Method test_tell

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

Source from the content-addressed store, hash-verified

150 self.assertEqual(reader.read(1), self.content[1:2])
151
152 def test_tell(self):
153 with open(self.filename, 'rb') as f:
154 reader = InterruptReader(f, self.transfer_coordinator)
155 # Ensure it can tell correctly
156 reader.seek(1)
157 self.assertEqual(reader.tell(), 1)
158
159
160class BaseUploadInputManagerTest(BaseUploadTest):

Callers

nothing calls this directly

Calls 3

seekMethod · 0.95
tellMethod · 0.95
InterruptReaderClass · 0.90

Tested by

no test coverage detected