def test_contains_translations_ignores_nones(self): self.assertFalse(contains_translations({0: None}))
def test_contains_translations_finds_any_translations(self): for plural_form in range(TranslationConstants.MAX_PLURAL_FORMS): self.assertTrue( contains_translations({plural_form: self.getUniqueString()}))
def test_contains_translations_ignores_empty_strings(self): self.assertFalse(contains_translations({0: u''}))
def test_contains_translations_is_false_for_empty_dict(self): self.assertFalse(contains_translations({}))
def test_contains_translations_finds_any_translations(self): for plural_form in xrange(TranslationConstants.MAX_PLURAL_FORMS): self.assertTrue( contains_translations({plural_form: self.getUniqueString()}))