コード例 #1
0
 def test_today(self):
     from brabbel.functions import _date
     result = _date('today')
     self.assertEqual(result, date.today())
コード例 #2
0
 def test_date(self):
     from brabbel.functions import _date
     result = _date('20000101')
     self.assertEqual(result, date(2000, 1, 1))