示例#1
0
 def test_contains_translations_ignores_nones(self):
     self.assertFalse(contains_translations({0: None}))
示例#2
0
 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()}))
示例#3
0
 def test_contains_translations_ignores_empty_strings(self):
     self.assertFalse(contains_translations({0: u''}))
示例#4
0
 def test_contains_translations_is_false_for_empty_dict(self):
     self.assertFalse(contains_translations({}))
 def test_contains_translations_ignores_nones(self):
     self.assertFalse(contains_translations({0: None}))
 def test_contains_translations_ignores_empty_strings(self):
     self.assertFalse(contains_translations({0: u''}))
 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()}))
 def test_contains_translations_is_false_for_empty_dict(self):
     self.assertFalse(contains_translations({}))