def test_active_contributors(self):
        """Test the active_contributors util method."""
        start_date = self.start_date

        en_us_contributors = active_contributors(
            from_date=start_date, locale='en-US')
        es_contributors = active_contributors(
            from_date=start_date, locale='es')
        all_contributors = active_contributors(from_date=start_date)

        # Verify results!
        eq_(3, len(en_us_contributors))
        assert self.user in en_us_contributors
        assert self.en_us_old.creator not in en_us_contributors

        eq_(4, len(es_contributors))
        assert self.user in es_contributors
        assert self.es_old.creator not in es_contributors

        eq_(6, len(all_contributors))
        assert self.user in all_contributors
        assert self.en_us_old.creator not in all_contributors
        assert self.es_old.creator not in all_contributors
dataset/ETHPy150Open mozilla/kitsune/kitsune/wiki/tests/test_utils.py/ActiveContributorsTestCase.test_active_contributors/original