'Column name cannot be changed to an empty string or a string with whitespaces.
GH-2039'

def test_check_column_noname(self):

    self.open_dataset('iris')
    idx = self.widget.domain_editor.model().createIndex(1, 0)
    temp = self.widget.domain_editor.model().data(idx, Qt.DisplayRole)
    self.widget.domain_editor.model().setData(idx, '            ', Qt.EditRole)
    self.assertEqual(self.widget.domain_editor.model().data(idx, Qt.DisplayRole), temp)
    self.widget.domain_editor.model().setData(idx, '', Qt.EditRole)
    self.assertEqual(self.widget.domain_editor.model().data(idx, Qt.DisplayRole), temp)
