'Check nomogram for data with constant discrete feature'

def test_constant_feature_disc(self):

    domain = Domain([DiscreteVariable('d1', ('a', 'c')), DiscreteVariable('d2', ('b',))], DiscreteVariable('cls', ('e', 'd')))
    X = np.array([[0, 0], [1, 0], [0, 0], [1, 0]])
    data = Table(domain, X, np.array([0, 1, 1, 0]))
    cls = NaiveBayesLearner()(data)
    self._test_helper(cls, [50, 50])
    cls = LogisticRegressionLearner()(data)
    self._test_helper(cls, [50, 50])
