def test_do_rewind(self):
    stream = mock.Mock(spec=[u'seek'])
    ret_val = self._call_fut(stream, rewind=True)
    self.assertIsNone(ret_val)
    stream.seek.assert_called_once_with(0, os.SEEK_SET)
def test_do_rewind(self):
    stream = mock.Mock(spec=[u'seek'])
    ret_val = self._call_fut(stream, rewind=True)
    self.assertIsNone(ret_val)
    stream.seek.assert_called_once_with(0, os.SEEK_SET)