def test_offsets_empty(self): de = DocumentEntity() self.assertEqual([], de.offsets())
def test_offsets(self): de = DocumentEntity() de.offset_list = ' 4:5 1:2 3:4 ' self.assertEqual([(1,2), (3, 4), (4, 5)], de.offsets())
def test_offsets(self): de = DocumentEntity() de.offset_list = ' 4:5 1:2 3:4 ' self.assertEqual([(1, 2), (3, 4), (4, 5)], de.offsets())