def test_abs_rel_conversion_1(self):
        """
        First test for conversion of absolute and relative indexes
        """
        s = """0123
567
9
"""
        values = {  # rel -> abs
            0: (0, 0),
            1: (0, 1),
            2: (0, 2),
            3: (0, 3),
            4: (0, 4),
            5: (1, 0),
            6: (1, 1),
            7: (1, 2),
            8: (1, 3),
            9: (2, 0),
            10: (2, 1),
        }
        terminal = self.tc(s)
        for rel in values:
            expected = values[rel]
            ab = terminal._rel_cursor_pos_to_abs_pos(rel)
            self.assertEqual(ab, expected)
            # convert back
            back = terminal._abs_cursor_pos_to_rel_pos(ab)
            self.assertEqual(back, rel)

        First test for conversion of absolute and relative indexes
        
tests/ui/test_tkui.py