def test_get_offsets(self):
    text = ' This is Doccano Transformer . '
    tokens = text.split()
    result = utils.get_offsets(text, tokens)
    expected = [1, 6, 9, 17, 29]
    self.assertListEqual(result, expected)
def test_get_offsets(self):
    text = ' This is Doccano Transformer . '
    tokens = text.split()
    result = utils.get_offsets(text, tokens)
    expected = [1, 6, 9, 17, 29]
    self.assertListEqual(result, expected)