def METHOD_NAME(self):
    index = self.text.index
    for dex in (-1.0, 0.3, '1.-1', '1.0', '1.0 lineend', '1.end', '1.33',
            'insert'):
        self.assertEqual(index(dex), '1.0')
    for dex in 'end', 2.0, '2.1', '33.44':
        self.assertEqual(index(dex), '2.0')