'Check output for merging option \'Find matching rows\' by class
variable'

def test_output_merge_by_class_inner(self):

    (domainA, domainB) = (self.dataA.domain, self.dataB.domain)
    result_d = Domain((domainA.attributes + domainB.attributes), domainA.class_vars, (domainA.metas + domainB.metas))
    result_X = np.array([[1, 1, 2, np.nan], [2, 0, 1, 1]])
    result_Y = np.array([1, 2])
    result_M = np.array([[1.0, 'm2', 0.0], [np.nan, 'm3', 1.0]]).astype(object)
    result = Table(result_d, result_X, result_Y, result_M)
    self.send_signal(self.widget.Inputs.data, self.dataA)
    self.send_signal(self.widget.Inputs.extra_data, self.dataB)
    self.widget.attr_merge_data = domainA.class_vars[0]
    self.widget.attr_merge_extra = domainB.class_vars[0]
    self.widget.controls.merging.buttons[1].click()
    self.assertTablesEqual(self.get_output(self.widget.Outputs.data), result)
