MCPcopy Create free account
hub / github.com/Pylons/webtest / test_seek

Method test_seek

tests/test_lint.py:114–118  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

112 self.assertEqual(to_bytes("").join(input_wrapper), data, '')
113
114 def test_seek(self):
115 data = to_bytes("A line\nAnother line\nA final line\n")
116 input_wrapper = InputWrapper(BytesIO(data))
117 input_wrapper.seek(0)
118 self.assertEqual(to_bytes("").join(input_wrapper), data, '')
119
120
121class TestMiddleware2(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

seekMethod · 0.95
to_bytesFunction · 0.90
InputWrapperClass · 0.90

Tested by

no test coverage detected