"""Tests for the python version check.

Tests that an execption is thrown when loading the class in Python version <3.4
"""
import sys
import unittest


class TestVersioncheck(unittest.TestCase):
    """Tests for the python version check."""

    MIN_SUPPORTED_VERSION = (3, 4)

    def test_py2(self):
        """Make sure older python versions throw an exception."""
        if sys.version_info >= self.MIN_SUPPORTED_VERSION:
            return
        try:
            import miflora  # noqa: F401 # pylint: disable=unused-import,import-outside-toplevel

            self.fail("Should have thrown an exception")
        except ValueError as val_err:
            self.assertIn("version", str(val_err))

    def test_py3(self):
        """Make sure newer python versions do not throw an exception."""
        if sys.version_info < self.MIN_SUPPORTED_VERSION:
            return
        import miflora  # noqa: F401 # pylint: disable=unused-import,import-outside-toplevel

8ffa3077ab04f485187cd63b56baedbc7a3f5d7c
<mask token>


class TestVersioncheck(unittest.TestCase):
    <mask token>
    <mask token>

    def test_py2(self):
        """Make sure older python versions throw an exception."""
        if sys.version_info >= self.MIN_SUPPORTED_VERSION:
            return
        try:
            import miflora
            self.fail('Should have thrown an exception')
        except ValueError as val_err:
            self.assertIn('version', str(val_err))
    <mask token>

<mask token>


class TestVersioncheck(unittest.TestCase):
    <mask token>
    MIN_SUPPORTED_VERSION = 3, 4

    def test_py2(self):
        """Make sure older python versions throw an exception."""
        if sys.version_info >= self.MIN_SUPPORTED_VERSION:
            return
        try:
            import miflora
            self.fail('Should have thrown an exception')
        except ValueError as val_err:
            self.assertIn('version', str(val_err))

    def test_py3(self):
        """Make sure newer python versions do not throw an exception."""
        if sys.version_info < self.MIN_SUPPORTED_VERSION:
            return
        import miflora

<mask token>


class TestVersioncheck(unittest.TestCase):
    """Tests for the python version check."""
    MIN_SUPPORTED_VERSION = 3, 4

    def test_py2(self):
        """Make sure older python versions throw an exception."""
        if sys.version_info >= self.MIN_SUPPORTED_VERSION:
            return
        try:
            import miflora
            self.fail('Should have thrown an exception')
        except ValueError as val_err:
            self.assertIn('version', str(val_err))

    def test_py3(self):
        """Make sure newer python versions do not throw an exception."""
        if sys.version_info < self.MIN_SUPPORTED_VERSION:
            return
        import miflora

<mask token>
import sys
import unittest


class TestVersioncheck(unittest.TestCase):
    """Tests for the python version check."""
    MIN_SUPPORTED_VERSION = 3, 4

    def test_py2(self):
        """Make sure older python versions throw an exception."""
        if sys.version_info >= self.MIN_SUPPORTED_VERSION:
            return
        try:
            import miflora
            self.fail('Should have thrown an exception')
        except ValueError as val_err:
            self.assertIn('version', str(val_err))

    def test_py3(self):
        """Make sure newer python versions do not throw an exception."""
        if sys.version_info < self.MIN_SUPPORTED_VERSION:
            return
        import miflora

"""Tests for the python version check.

Tests that an execption is thrown when loading the class in Python version <3.4
"""
import sys
import unittest


class TestVersioncheck(unittest.TestCase):
    """Tests for the python version check."""

    MIN_SUPPORTED_VERSION = (3, 4)

    def test_py2(self):
        """Make sure older python versions throw an exception."""
        if sys.version_info >= self.MIN_SUPPORTED_VERSION:
            return
        try:
            import miflora  # noqa: F401 # pylint: disable=unused-import,import-outside-toplevel

            self.fail("Should have thrown an exception")
        except ValueError as val_err:
            self.assertIn("version", str(val_err))

    def test_py3(self):
        """Make sure newer python versions do not throw an exception."""
        if sys.version_info < self.MIN_SUPPORTED_VERSION:
            return
        import miflora  # noqa: F401 # pylint: disable=unused-import,import-outside-toplevel
