def METHOD_NAME(self):
    pred_socres = self.clf.decision_function(self.X_test)
    pred_ranks = self.clf._predict_rank(self.X_test)
    # assert the order is reserved
    assert_allclose(rankdata(pred_ranks), rankdata(pred_socres), atol=2.5)
    assert_array_less(pred_ranks, self.X_train.shape[0] + 1)
    assert_array_less(-0.1, pred_ranks)