# Path: tests/_constants.py
# def _UDEV_TEST(version, node=None):  # pylint: disable=invalid-name
#     fmt_str = "%s: udev version must be at least %s, is %s"
#     return pytest.mark.skipif(
#         _UDEV_VERSION < version, reason=fmt_str % (node, version, _UDEV_VERSION)
#     )
# 
# Path: tests/utils/misc.py
# def is_unicode_string(value):
#     """
#     Return ``True``, if ``value`` is of a real unicode string type
#     (``unicode`` in python 2, ``str`` in python 3), ``False`` otherwise.
#     """
#     return isinstance(value, str)


import random
import syslog
    import mock
from tests._constants import _UDEV_TEST
from tests.utils import is_unicode_string
from pyudev import udev_version
    from unittest import mock

# isort: FUTURE
from __future__ import absolute_import, division, print_function, unicode_literals

# isort: STDLIB

# isort: FIRSTPARTY

# isort: LOCAL

try:
    # isort: STDLIB
except ImportError:
    # isort: THIRDPARTY


def test_udev_version():
    assert isinstance(udev_version(), int)
    # just to make sure, that udev versioning works.  pyudev itself should be
    # compatible with earlier versions of pyudev.  However, 150 is currently
    # the earliest udev release, I'm testing against (using Ubuntu 10.04)
    assert udev_version() > 150


class TestContext(object):
    def test_sys_path(self, context):
        assert is_unicode_string(context.sys_path)
        assert context.sys_path == "/sys"

    def test_device_path(self, context):

# Path: tests/_constants.py
# def _UDEV_TEST(version, node=None):  # pylint: disable=invalid-name
#     fmt_str = "%s: udev version must be at least %s, is %s"
#     return pytest.mark.skipif(
#         _UDEV_VERSION < version, reason=fmt_str % (node, version, _UDEV_VERSION)
#     )
# 
# Path: tests/utils/misc.py
# def is_unicode_string(value):
#     """
#     Return ``True``, if ``value`` is of a real unicode string type
#     (``unicode`` in python 2, ``str`` in python 3), ``False`` otherwise.
#     """
#     return isinstance(value, str)


# Path: tests/test_core.py
import random
import syslog
    import mock
from tests._constants import _UDEV_TEST
from tests.utils import is_unicode_string
from pyudev import udev_version
    from unittest import mock


# isort: FUTURE
from __future__ import absolute_import, division, print_function, unicode_literals

# isort: STDLIB

# isort: FIRSTPARTY

# isort: LOCAL

try:
    # isort: STDLIB
except ImportError:
    # isort: THIRDPARTY


def test_udev_version():
    assert isinstance(udev_version(), int)
    # just to make sure, that udev versioning works.  pyudev itself should be
    # compatible with earlier versions of pyudev.  However, 150 is currently
    # the earliest udev release, I'm testing against (using Ubuntu 10.04)
    assert udev_version() > 150


class TestContext(object):
    def test_sys_path(self, context):
        assert is_unicode_string(context.sys_path)
        assert context.sys_path == "/sys"

    def test_device_path(self, context):

        assert is_unicode_string(context.device_path)