Ejemplo n.º 1
0
 def test_max_reports_per_category(self):
     """Check that _MAX_REPORTS_PER_CATEGORY is valid."""
     all_categories = self._all_categories()
     for category in _MAX_REPORTS_PER_CATEGORY.iterkeys():
         self.assertTrue(category in all_categories,
                         'Key "%s" is not a category' % category)
Ejemplo n.º 2
0
 def test_max_reports_per_category(self):
     """Check that _MAX_REPORTS_PER_CATEGORY is valid."""
     all_categories = self._all_categories()
     for category in _MAX_REPORTS_PER_CATEGORY.iterkeys():
         self.assertTrue(category in all_categories,
                         'Key "%s" is not a category' % category)