def test_conversion_unfitted(self):
        """Tests conversion failure for an unfitted scikit model."""
        scikit_model = KNeighborsClassifier()
        self.assertRaises(TypeError, sklearn.convert, scikit_model)
Tests conversion failure for an unfitted scikit model.
coremltools/test/sklearn_tests/test_k_neighbors_classifier.py