示例#1
0
class TestErrorFilter:
    def setup(self):
        self.error_filter = ErrorFilter()

    def test_filter(self):
        MyRecord = namedtuple('MyRecord', 'levelno')
        record = MyRecord(levelno=logging.ERROR)
        assert self.error_filter.filter(record) is True
示例#2
0
class TestErrorFilter(object):
    def setup(self):
        self.error_filter = ErrorFilter()

    def test_filter(self):
        MyRecord = namedtuple(
            'MyRecord',
            'levelno'
        )
        record = MyRecord(levelno=logging.ERROR)
        assert self.error_filter.filter(record) is True
示例#3
0
 def setup(self):
     self.error_filter = ErrorFilter()
示例#4
0
 def setup(self):
     self.error_filter = ErrorFilter()