'Check that the SklLearner correctly infers whether or not the
learner supports weights'

def test_sklearn_supports_weights(self):

    class DummySklLearner:
        def fit(self, X, y, sample_weight=None):
            pass
    class DummyLearner(SklLearner, ):
        __wraps__ = DummySklLearner
    self.assertTrue(DummyLearner().supports_weights)
    class DummySklLearner:
        def fit(self, X, y):
            pass
    class DummyLearner(SklLearner, ):
        __wraps__ = DummySklLearner
    self.assertFalse(DummyLearner().supports_weights)
