def test_representation_days_after(self):
     assert days_after(days=1, deadline=DateBase.now()).active_when == 'after 09/16'
 def test_invalid_days(self):
     with pytest.raises(ValueError):
         days_after(days=-1, deadline=DateBase.now())
 def test_representation_before(self):
     assert before(deadline=DateBase.now()).active_when == 'before 09/15'
 def test_representation_days_before_until(self):
     assert days_before(days=10, deadline=DateBase.now(), until=5).active_when == 'between 09/05 and 09/10'
 def test_representation_days_before(self):
     assert days_before(days=1, deadline=DateBase.now()).active_when == 'between 09/14 and 09/15'
 def test_invalid_date_range(self):
     with pytest.raises(ValueError):
         days_before(days=3, deadline=DateBase.now(), until=5)