Exemple #1
0
 def test_thumbnail_sizes_vocabulary_items(self):
     vocabulary = thumbnail_sizes_vocabulary(self.portal)
     clients = ['mini', 'thumb', 'large', 'listing', 'tile', 'preview', 'icon']
     for term in vocabulary.by_token.keys():
         self.assertIn(term, clients)
Exemple #2
0
 def test_thumbnail_sizes_vocabulary_quantity(self):
     vocabulary = thumbnail_sizes_vocabulary(self.portal)
     self.assertEqual(len(vocabulary.by_token), 7)