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
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
def setup(self): self.error_filter = ErrorFilter()