# Path: django_evolution/support.py



from functools import wraps
from unittest import SkipTest
from django_evolution.support import (supports_constraints,
                                      supports_index_together,
                                      supports_indexes,
                                      supports_migrations)
import django

    Raises:
        unittest.SkipTest:
            Raised if run on a version of Django without the required support.
    """
    def _decorator(func):
        @wraps(func)
        def _wrapper(*args, **kwargs):
            if not flag:
                raise SkipTest(skip_message % {
                    'django_version': '%s.%s' % django.VERSION[:2],
                })

            return func(*args, **kwargs)

        return _wrapper

    return _decorator


#: Decorator to require Meta.constraints support for running a test.
#:
#: Args:
#:     func (callable):
#:         The unit test function to wrap.
#:
#: Raises:
#:     unittest.SkipTest:
#:         The current version of Django doesn't support ``Meta.constraints``.
requires_meta_constraints = _build_requires_support_decorator(

# Path: django_evolution/support.py



# Path: django_evolution/tests/decorators.py
from functools import wraps
from unittest import SkipTest
from django_evolution.support import (supports_constraints,
                                      supports_index_together,
                                      supports_indexes,
                                      supports_migrations)
import django


    Raises:
        unittest.SkipTest:
            Raised if run on a version of Django without the required support.
    """
    def _decorator(func):
        @wraps(func)
        def _wrapper(*args, **kwargs):
            if not flag:
                raise SkipTest(skip_message % {
                    'django_version': '%s.%s' % django.VERSION[:2],
                })

            return func(*args, **kwargs)

        return _wrapper

    return _decorator


#: Decorator to require Meta.constraints support for running a test.
#:
#: Args:
#:     func (callable):
#:         The unit test function to wrap.
#:
#: Raises:
#:     unittest.SkipTest:
#:         The current version of Django doesn't support ``Meta.constraints``.
requires_meta_constraints = _build_requires_support_decorator(

    flag=supports_constraints,