def LogLibraryVersions(log): '''Log the versions of libraries used''' log.info('Python version = {}'.format(sys.version)) log.info('Pytsk version = {}'.format(pytsk3.get_version())) log.info('Pyewf version = {}'.format(pyewf.get_version())) log.info('Pyvmdk version = {}'.format(pyvmdk.get_version())) log.info('PyAFF4 version = {}'.format( pyaff4._version.raw_versions()['version']))
def test_get_version(self): """Tests the get_version function.""" version = pyvmdk.get_version()
def test_get_version(self): """Tests the get_version function.""" version = pyvmdk.get_version()
def LogLibraryVersions(log): '''Log the versions of libraries used''' log.info('Pytsk version = {}'.format(pytsk3.get_version())) log.info('Pyewf version = {}'.format(pyewf.get_version())) log.info('Pyvmdk version= {}'.format(pyvmdk.get_version()))
# -*- coding: utf-8 -*- """The VMDK image file-like object.""" import pyvmdk from dfvfs.file_io import file_object_io from dfvfs.lib import errors from dfvfs.path import factory as path_spec_factory from dfvfs.resolver import resolver if pyvmdk.get_version() < '20140421': raise ImportWarning('VmdkFile requires at least pyvmdk 20140421.') class VmdkFile(file_object_io.FileObjectIO): """Class that implements a file-like object using pyvmdk.""" def _OpenFileObject(self, path_spec): """Opens the file-like object defined by path specification. Args: path_spec: the path specification (instance of path.PathSpec). Returns: A file-like object. Raises: IOError: if the file-like object could not be opened. PathSpecError: if the path specification is incorrect. """
def test_get_version(self): """Tests the get_version function.""" version = pyvmdk.get_version() self.assertIsNotNone(version)
import pyvmdk import pyvhdi print pyvmdk.get_version() print pyvhdi.get_version()