def seek(self, offset, whence=os.SEEK_SET):
    if not self._database_object:
      raise IOError(u'Not opened.')

    if whence == os.SEEK_CUR:
      offset += self._current_offset
    elif whence == os.SEEK_END:
      offset += self._size
    elif whence != os.SEEK_SET:
      raise IOError(u'Unsupported whence.')

    if offset < 0:
      raise IOError(u'Invalid offset value out of bounds.')

    self._current_offset = offset
Tests PokitDok.pharmacy_drug_cost
dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/file_io/sqlite_blob_file_io.py/SQLiteBlobFile.seek--crossover with--dataset/ETHPy150Open pokitdok/pokitdok-python/tests/test_api_client.py/TestAPIClient.test_pharmacy_drug_cost