# Path: ptp/libptp/constants.py
# UNKNOWN = 0
# INFO = 1
# LOW = 2
# MEDIUM = 3
# HIGH = 4
# RANKING_SCALE = {HIGH: HIGH, MEDIUM: MEDIUM, LOW: LOW, INFO: INFO, UNKNOWN: UNKNOWN}
# 
# Path: ptp/libptp/exceptions.py
# class NotSupportedVersionError(PTPError):
#     """:mod:`ptp` error when the version of the tool is not supported."""
#     pass


from ptp.libptp import constants
from ptp.libptp.exceptions import NotSupportedVersionError

    def __init__(self):
        self.stream = ''

    @classmethod
    def is_mine(cls, *args, **kwargs):
        return True

    def parse_metadata(self):
        return {}

    def parse_report(self):
        return []


class MockParserVersionNotSupported(MockParser):

    __tool__ = 'mock_invalid_version'

    @classmethod
    def is_mine(cls, *args, **kwargs):
        raise NotSupportedVersionError('PTP does NOT support this version of mock_invalid_version.')


class MockParserIOError(MockParser):

    __tool__ = 'mock_ioerror'

    @classmethod
    def is_mine(cls, *args, **kwargs):

# Path: ptp/libptp/constants.py
# UNKNOWN = 0
# INFO = 1
# LOW = 2
# MEDIUM = 3
# HIGH = 4
# RANKING_SCALE = {HIGH: HIGH, MEDIUM: MEDIUM, LOW: LOW, INFO: INFO, UNKNOWN: UNKNOWN}
# 
# Path: ptp/libptp/exceptions.py
# class NotSupportedVersionError(PTPError):
#     """:mod:`ptp` error when the version of the tool is not supported."""
#     pass


# Path: tests/utils.py
from ptp.libptp import constants
from ptp.libptp.exceptions import NotSupportedVersionError


    def __init__(self):
        self.stream = ''

    @classmethod
    def is_mine(cls, *args, **kwargs):
        return True

    def parse_metadata(self):
        return {}

    def parse_report(self):
        return []


class MockParserVersionNotSupported(MockParser):

    __tool__ = 'mock_invalid_version'

    @classmethod
    def is_mine(cls, *args, **kwargs):
        raise NotSupportedVersionError('PTP does NOT support this version of mock_invalid_version.')


class MockParserIOError(MockParser):

    __tool__ = 'mock_ioerror'

    @classmethod
    def is_mine(cls, *args, **kwargs):

        raise IOError