def test_validate_translation_suggestion_counts_fails_for_negative_counts(self):
    community_contribution_stats = suggestion_services.get_community_contribution_stats()
    community_contribution_stats.set_translation_suggestion_count_for_language_code(self.sample_language_code, self.negative_count)
    with self.assertRaisesRegexp(utils.ValidationError, ('Expected the translation suggestion count to be non-negative for %s language code, received: %s.' % (self.sample_language_code, self.negative_count))):
        community_contribution_stats.validate()
def test_validate_translation_suggestion_counts_fails_for_negative_counts(self):
    community_contribution_stats = suggestion_services.get_community_contribution_stats()
    community_contribution_stats.set_translation_suggestion_count_for_language_code(self.sample_language_code, self.negative_count)
    with self.assertRaisesRegexp(utils.ValidationError, ('Expected the translation suggestion count to be non-negative for %s language code, received: %s.' % (self.sample_language_code, self.negative_count))):
        community_contribution_stats.validate()