def data(self, mi, role):
        if role == QtCore.Qt.DisplayRole:
            index = mi.row() * self._editor.factory.cols + mi.column()
            if index < len(self._editor.names):
                return self._editor.names[index]

        return None
Test __init__().
dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/image_enum_editor.py/ImageEnumModel.data--crossover with--dataset/ETHPy150Open google/simian/src/tests/simian/auth/x509_test.py/X509CertificateTest.testInit