def test_learn_structure(self): data = self.get_testing_data() clf = self.svm.learn_structure(data) self.assertIsInstance(clf, svm.OneClassSVM)