'Check if combo box content is properly set for merging option
\'Append columns from Extra Data\''

def test_combobox_items_left(self):

    (domainA, domainB) = (self.dataA.domain, self.dataB.domain)
    data_combo = self.widget.controls.attr_augment_data
    extra_combo = self.widget.controls.attr_augment_extra
    self.send_signal(self.widget.Inputs.data, self.dataA)
    self.send_signal(self.widget.Inputs.extra_data, self.dataA)
    data_items = list(chain([INDEX], domainA, domainA.metas))
    extra_items = list(chain([INDEX], domainA.variables[::2], domainA.metas[1:]))
    self.assertListEqual(data_combo.model()[:], data_items)
    self.assertListEqual(extra_combo.model()[:], extra_items)
    self.send_signal(self.widget.Inputs.extra_data, self.dataB)
    extra_items = list(chain([INDEX], domainB, domainB.metas))
    self.assertListEqual(data_combo.model()[:], data_items)
    self.assertListEqual(extra_combo.model()[:], extra_items)
    self.send_signal(self.widget.Inputs.data, self.dataB)
    data_items = list(chain([INDEX], domainB, domainB.metas))
    self.assertListEqual(data_combo.model()[:], data_items)
    self.assertListEqual(extra_combo.model()[:], extra_items)
