# 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

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

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

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

    def test_different_modules(self):
        """
        Exploratory testing, do we get the same instance if we
        import module twice?
        """
        m1 = __import__("logging")
        m2 = __import__("logging")

        self.assertEquals(m1.getLogger("test"), m2.getLogger("test"))

    def test_get_events(self):
        instance = logging.getLogger("test")
        instance.warning("ops")
        instance.critical("ooops")
        result = instance.get_events("CRITICAL WARNING INFO")
        self.assertEquals(2,len(result))
        result = instance.get_events("CRITICAL")
        self.assertEquals(1,len(result))

    def test_has(self):

# 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


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

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

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

    def test_different_modules(self):
        """
        Exploratory testing, do we get the same instance if we
        import module twice?
        """
        m1 = __import__("logging")
        m2 = __import__("logging")

        self.assertEquals(m1.getLogger("test"), m2.getLogger("test"))

    def test_get_events(self):
        instance = logging.getLogger("test")
        instance.warning("ops")
        instance.critical("ooops")
        result = instance.get_events("CRITICAL WARNING INFO")
        self.assertEquals(2,len(result))
        result = instance.get_events("CRITICAL")
        self.assertEquals(1,len(result))

    def test_has(self):

        instance = logging.getLogger("test")