def test_formatter_date(self): fmt = _Formatter() fmt.datefmt = '%H:%M' assert (fmt.format(self.record) .startswith(datetime.today().strftime('%H:%M')))
def _test_formatter_no_date(self): fmt = _Formatter() assert fmt.format(self.record)
def test_formatter_no_date(self): fmt = _Formatter() assert fmt.format(self.record)