'In case we have only two values of a target we get coefficients of only value.
Instead of writing "coef" or sth similar it is written a second value name.
GH-2116'

def test_coefficients_one_value(self):

    table = Table(Domain([ContinuousVariable('a'), ContinuousVariable('b')], [DiscreteVariable('c', values=['yes', 'no'])]), list(zip([1.0, 0.0], [0.0, 1.0], ['yes', 'no'])))
    self.send_signal('Data', table)
    self.widget.apply_button.button.click()
    coef = self.get_output(self.widget.Outputs.coefficients)
    self.assertEqual(coef.domain[0].name, 'no')
    self.assertGreater(coef[2][0], 0.0)
