def test_length(self): period = Period(cohort=None, start_day=1, end_day=30) self.assertEqual(period.length(), 29)