def _cmp(self, v, s): stage2 = v(self.db) stage3 = stage2(self.rec) r = HTML.generate(stage3) assert r == s, "expected %s, got %s" % (repr(s), repr(r))
def _on_add(k): v = self.bibtex[k] t = HTML.generate(self.cite.formatter(v)) model.append((k, t)) self._got += 1 set_progress()