def test_conversion_bad_inputs(self): # Check the expected class during covnersion. with self.assertRaises(TypeError): model = OneHotEncoder() spec = libsvm.convert(model, 'data', 'out')