def test_conversion_unsupported_algorithm(self):
        """Test a scikit KNeighborsClassifier with an invalid algorithm."""
        scikit_model = KNeighborsClassifier(algorithm="ball_tree")
        self.assertRaises(TypeError, sklearn.convert, scikit_model)
Test a scikit KNeighborsClassifier with an invalid algorithm.
coremltools/test/sklearn_tests/test_k_neighbors_classifier.py