Example #1
0
 def test_returns_true_if_date_is_none(self):
     due_date = DueDate(date=datetime.date(2015, 01, 1))
     self.assertEqual(due_date.is_after(None), True)
Example #2
0
 def test_returns_false_if_due_date_is_before_date(self):
     due_date = DueDate(date=datetime.date(2014, 1, 1))
     self.assertEqual(due_date.is_after(datetime.date(2015, 1, 1)), False)