def test_str(self):
     imputer = impute.Model(MajorityLearner())
     self.assertIn(MajorityLearner().name,
                   imputer.format_variable(data.Variable("y")))
 def test_str(self):
     imputer = impute.Default(1)
     self.assertIn('1', imputer.format_variable(data.Variable("y")))