Esempio n. 1
0
 def test_formatter_date(self):
     fmt = _Formatter()
     fmt.datefmt = '%H:%M'
     assert (fmt.format(self.record)
                .startswith(datetime.today().strftime('%H:%M')))
Esempio n. 2
0
 def _test_formatter_no_date(self):
     fmt = _Formatter()
     assert fmt.format(self.record)
Esempio n. 3
0
 def test_formatter_no_date(self):
     fmt = _Formatter()
     assert fmt.format(self.record)
Esempio n. 4
0
 def test_formatter_date(self):
     fmt = _Formatter()
     fmt.datefmt = '%H:%M'
     assert (fmt.format(self.record)
                .startswith(datetime.today().strftime('%H:%M')))