Exemple #1
0
 def _verify_model_contains_no_keywords(self, model, mapped=False):
     if not mapped:
         model = remap(model, self.context.strings)
     assert_true('keyword' not in model, 'Not all keywords removed')
     for item in model:
         if isinstance(item, tuple):
             self._verify_model_contains_no_keywords(item, mapped=True)
 def _verify_model_contains_no_keywords(self, model, mapped=False):
     if not mapped:
         model = remap(model, self.context.strings)
     assert_true('keyword' not in model, 'Not all keywords removed')
     for item in model:
         if isinstance(item, tuple):
             self._verify_model_contains_no_keywords(item, mapped=True)