Example #1
0
 def test_ffill_weeks(self):
     today = reduce_by_week(timezone.now())
     another_week = today + timedelta(days=14)
     groups = {reduce_by_week(another_week): 5, today: 10}
     filled = ffill(groups, by="W")
     eq_(len(filled), 3)
Example #2
0
 def test_ffill_notimplemented(self):
     today = reduce_by_week(timezone.now())
     another_week = today + timedelta(days=14)
     groups = {reduce_by_week(another_week): 5, today: 10}
     ffill(groups, by="XYZ")