old_contents: import doctest
  import unittest
  
  import matplotlib.pyplot as plt
  import numpy as np
  from kenchi.outlier_detection import classification_based
  from kenchi.tests.common_tests import OutlierDetectorTestMixin
  
  
  def load_tests(loader, tests, ignore):
      tests.addTests(doctest.DocTestSuite(classification_based))
  
      return tests
  
  
  class OCSVMTest(unittest.TestCase, OutlierDetectorTestMixin):
      def setUp(self):
          self.X_train, self.X_test, self.y_train, self.y_test = \
              self.prepare_data()
  
          self.sut = classification_based.OCSVM(random_state=0)
  
      def tearDown(self):
          plt.close()
  
      def test_predict(self):
          super().test_predict()
  
          y_pred_sut       = self.sut.predict(self.X_test)
          y_pred_estimator = self.sut.estimator_.predict(self.X_test)
  
          np.testing.assert_equal(y_pred_sut, y_pred_estimator)
  
new_contents: import doctest
  import unittest
  
  import numpy as np
  from kenchi.outlier_detection import classification_based
  from kenchi.tests.common_tests import OutlierDetectorTestMixin
  
  
  def load_tests(loader, tests, ignore):
      tests.addTests(doctest.DocTestSuite(classification_based))
  
      return tests
  
  
  class OCSVMTest(unittest.TestCase, OutlierDetectorTestMixin):
      def setUp(self):
          self.X_train, self.X_test, self.y_train, self.y_test = \
              self.prepare_data()
  
          self.sut = classification_based.OCSVM(random_state=0)
  
      def test_predict(self):
          super().test_predict()
  
          y_pred_sut       = self.sut.predict(self.X_test)
          y_pred_estimator = self.sut.estimator_.predict(self.X_test)
  
          np.testing.assert_equal(y_pred_sut, y_pred_estimator)
  
subject: fix OCSVMTest class