diff --git a/tests/test_buffers.py b/tests/test_buffers.py index 01cdc2de..1114232e 100644 --- a/tests/test_buffers.py +++ b/tests/test_buffers.py @@ -185,6 +185,8 @@ def tearDown(self): def test_prepare_not_seekable(self): f = KindaFilelike(b"abc") inst = self._makeOne(f) + self.assertFalse(hasattr(inst, 'seek')) + self.assertFalse(hasattr(inst, 'tell')) result = inst.prepare() self.assertEqual(result, False) self.assertEqual(inst.remain, 0) @@ -200,6 +202,8 @@ def test_prepare_not_seekable_closeable(self): def test_prepare_seekable_closeable(self): f = Filelike(b"abc", close=1, tellresults=[0, 10]) inst = self._makeOne(f) + self.assertEqual(inst.seek, f.seek) + self.assertEqual(inst.tell, f.tell) result = inst.prepare() self.assertEqual(result, 10) self.assertEqual(inst.remain, 10)