# Path: twiggy/levels.py
# class LogLevelMeta(type):
# class LogLevel(with_metaclass(LogLevelMeta, object)):
#     def __new__(meta, name, bases, dct):
#     def __init__(self, name, value):
#     def __str__(self):
#     def __repr__(self):
#     def _lt(self, other):  # pragma: no py2 cover
#     def _le(self, other):  # pragma: no py2 cover
#     def _gt(self, other):  # pragma: no py2 cover
#     def _ge(self, other):  # pragma: no py2 cover
#     def __eq__(self, other):
#     def __ne__(self, other):
#     def __cmp__(self, other):  # pragma: no py3 cover
#     def __hash__(self):
# def name2level(name):
# DEBUG = LogLevel('DEBUG', 1)
# INFO = LogLevel('INFO', 2)
# NOTICE = LogLevel('NOTICE', 3)
# WARNING = LogLevel('WARNING', 4)
# ERROR = LogLevel('ERROR', 5)
# CRITICAL = LogLevel('CRITICAL', 6)
# DISABLED = LogLevel('DISABLED', 7)


import pytest
from twiggy import levels
    assert levels.NOTICE > levels.INFO
    assert levels.WARNING > levels.NOTICE
    assert levels.ERROR > levels.WARNING
    assert levels.CRITICAL > levels.ERROR
    assert levels.DISABLED > levels.CRITICAL


def test_greater_than_equals():
    assert levels.INFO >= levels.DEBUG
    assert levels.NOTICE >= levels.INFO
    assert levels.WARNING >= levels.NOTICE
    assert levels.ERROR >= levels.WARNING
    assert levels.CRITICAL >= levels.ERROR
    assert levels.DISABLED >= levels.CRITICAL


def test_equality():
    assert levels.DEBUG == levels.DEBUG
    assert levels.INFO == levels.INFO
    assert levels.NOTICE == levels.NOTICE
    assert levels.WARNING == levels.WARNING
    assert levels.ERROR == levels.ERROR
    assert levels.CRITICAL == levels.CRITICAL


def test_inequality():
    assert not levels.DEBUG != levels.DEBUG
    assert not levels.INFO != levels.INFO
    assert not levels.NOTICE != levels.NOTICE
    assert not levels.WARNING != levels.WARNING

# Path: twiggy/levels.py
# class LogLevelMeta(type):
# class LogLevel(with_metaclass(LogLevelMeta, object)):
#     def __new__(meta, name, bases, dct):
#     def __init__(self, name, value):
#     def __str__(self):
#     def __repr__(self):
#     def _lt(self, other):  # pragma: no py2 cover
#     def _le(self, other):  # pragma: no py2 cover
#     def _gt(self, other):  # pragma: no py2 cover
#     def _ge(self, other):  # pragma: no py2 cover
#     def __eq__(self, other):
#     def __ne__(self, other):
#     def __cmp__(self, other):  # pragma: no py3 cover
#     def __hash__(self):
# def name2level(name):
# DEBUG = LogLevel('DEBUG', 1)
# INFO = LogLevel('INFO', 2)
# NOTICE = LogLevel('NOTICE', 3)
# WARNING = LogLevel('WARNING', 4)
# ERROR = LogLevel('ERROR', 5)
# CRITICAL = LogLevel('CRITICAL', 6)
# DISABLED = LogLevel('DISABLED', 7)


# Path: tests/test_levels.py
import pytest
from twiggy import levels

    assert levels.NOTICE > levels.INFO
    assert levels.WARNING > levels.NOTICE
    assert levels.ERROR > levels.WARNING
    assert levels.CRITICAL > levels.ERROR
    assert levels.DISABLED > levels.CRITICAL


def test_greater_than_equals():
    assert levels.INFO >= levels.DEBUG
    assert levels.NOTICE >= levels.INFO
    assert levels.WARNING >= levels.NOTICE
    assert levels.ERROR >= levels.WARNING
    assert levels.CRITICAL >= levels.ERROR
    assert levels.DISABLED >= levels.CRITICAL


def test_equality():
    assert levels.DEBUG == levels.DEBUG
    assert levels.INFO == levels.INFO
    assert levels.NOTICE == levels.NOTICE
    assert levels.WARNING == levels.WARNING
    assert levels.ERROR == levels.ERROR
    assert levels.CRITICAL == levels.CRITICAL


def test_inequality():
    assert not levels.DEBUG != levels.DEBUG
    assert not levels.INFO != levels.INFO
    assert not levels.NOTICE != levels.NOTICE
    assert not levels.WARNING != levels.WARNING

    assert not levels.ERROR != levels.ERROR