# Path: omelette/compiler/logging.py
# def getLogger(name):
#     def __init__(self):
#     def info(self, msg, object=None):
#     def warning(self, msg, object=None):
#     def error(self, msg, object=None):
#     def critical(self, msg, object=None):
#     def flush(self):
#     def is_empty(self):
#     def get_events(self, levels="INFO WARNING ERROR CRITICAL"):
#     def has(self, level):
#     def __init__(self, msg, level, object):
#     def __str__(self):
# class Logger:
# class Event:


import unittest
from omelette.compiler import logging
        instance = logging.getLogger("test")
        instance.error("ops")
        instance.flush()

        self.assertTrue(instance.is_empty())

    def test_info(self):
        instance = logging.getLogger("test")
        instance.info("ops")
        value = str(instance.events.pop())

        self.assertNotEquals(value.find("INFO"), -1)

    def test_warning(self):
        instance = logging.getLogger("test")
        instance.warning("ops")
        value = str(instance.events.pop())

        self.assertNotEquals(value.find("WARNING"), -1)

    def test_error(self):
        instance = logging.getLogger("test")
        instance.error("ops")
        value = str(instance.events.pop())

        self.assertNotEquals(value.find("ERROR"), -1)

    def test_critical(self):
        instance = logging.getLogger("test")
        instance.critical("ops")

# Path: omelette/compiler/logging.py
# def getLogger(name):
#     def __init__(self):
#     def info(self, msg, object=None):
#     def warning(self, msg, object=None):
#     def error(self, msg, object=None):
#     def critical(self, msg, object=None):
#     def flush(self):
#     def is_empty(self):
#     def get_events(self, levels="INFO WARNING ERROR CRITICAL"):
#     def has(self, level):
#     def __init__(self, msg, level, object):
#     def __str__(self):
# class Logger:
# class Event:


# Path: omelette/compiler/test/test_logging.py
import unittest
from omelette.compiler import logging

        instance = logging.getLogger("test")
        instance.error("ops")
        instance.flush()

        self.assertTrue(instance.is_empty())

    def test_info(self):
        instance = logging.getLogger("test")
        instance.info("ops")
        value = str(instance.events.pop())

        self.assertNotEquals(value.find("INFO"), -1)

    def test_warning(self):
        instance = logging.getLogger("test")
        instance.warning("ops")
        value = str(instance.events.pop())

        self.assertNotEquals(value.find("WARNING"), -1)

    def test_error(self):
        instance = logging.getLogger("test")
        instance.error("ops")
        value = str(instance.events.pop())

        self.assertNotEquals(value.find("ERROR"), -1)

    def test_critical(self):
        instance = logging.getLogger("test")
        instance.critical("ops")

        value = str(instance.events.pop())