Ejemplo n.º 1
0
 def _checkStackState(self, file_stack, values):
   """
   Checks the values of each element in the file stack
   :param FileStack file_stack:
   :param list values:
   """
   filepaths = file_stack._getFilepaths()
   if len(filepaths) !=  len(values):
     import pdb; pdb.set_trace()
   self.assertEqual(len(filepaths), len(values))
   pairs = zip(filepaths, values)
   for filepath, value in pairs:
     self.assertTrue(checkFilepathValue(filepath, value))
Ejemplo n.º 2
0
 def _checkState(self, managed_file_value, undo_values, redo_values):
   self.assertTrue(
      checkFilepathValue(self.versioned._filepath, managed_file_value))
   self._checkStackState(self.versioned._undo_stack, undo_values)
   self._checkStackState(self.versioned._redo_stack, redo_values)