def setUp(self):
     if self.page_i == 0 or self.page_j == 0:
         raise unittest.SkipTest("zero pages should be null")
     if self._settings['window'] is not None and math.fabs(self.page_i - self.page_j ) > self._settings['window']:
         raise unittest.SkipTest("pages outside window range")
     self.image_i = utils.load_pdf_page(
         self._settings['pdf_a'], self.page_i - 1)
     self.image_j = utils.load_pdf_page(
         self._settings['pdf_b'], self.page_j - 1)
     self.threshold = None
     self.measure = None
Example #2
0
 def setUp(self):
     if self.page_i==0 or self.page_j ==0:
         raise unittest.SkipTest("zero pages should be null")
     self.image_i=utils.load_pdf_page(self._settings['pdf_a'],self.page_i-1)
     self.image_j=utils.load_pdf_page(self._settings['pdf_b'],self.page_j-1)