'Test the active_contributors util method.'

def test_active_contributors(self):

    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)
    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)
