Пример #1
0
 def assertIndexToRange(self, text, index, expected_range):
     citer = Citer()
     actual = citer.indexToRange(text, index)
     self.assertEqual(expected_range, actual,
         "Expected index {index} to be range"
         " {expected_range} but it was actually {actual}"
         "\n\n{text!r}".format(**locals()))