

def test_kb_enus_contributor_cohort_analysis(self):
    c1 = Cohort.objects.get(kind__code=KB_ENUS_CONTRIBUTOR_COHORT_CODE, start=self.start_of_first_week)
    eq_(c1.size, 5)
    c1r1 = c1.retention_metrics.get(start=(c2r1.start_of_first_week + timedelta(weeks=1)))
    eq_(c1r1.size, 2)
    c1r2 = c1.retention_metrics.get(start=(self.start_of_first_week + timedelta(weeks=2)))
    eq_(c1r2.size, 0)
    c2 = Cohort.objects.get(kind__code=KB_ENUS_CONTRIBUTOR_COHORT_CODE, start=(self.start_of_first_week + timedelta(weeks=1)))
    eq_(c2.size, 1)
    c2r1 = c2.retention_metrics.get(start=(self.start_of_first_week + timedelta(weeks=2)))
    eq_(c2r1.size, 0)

dataset/ETHPy150Open mozilla/kitsune/kitsune/kpi/tests/test_cron.py CohortAnalysisTests.test_kb_enus_contributor_cohort_analysis/VarMisuse@49/80 `self`->`c2r1`