def test_sample_regular_wrong_svm():
 kind = 'svm'
 nn_k = NearestNeighbors(n_neighbors=6)
 svm = 'rnd'
 smote = SMOTE(random_state=RND_SEED, kind=kind, k_neighbors=nn_k, svm_estimator=svm)
 assert_raises(ValueError, smote.fit_sample, X, Y)

def test_sample_regular_wrong_svm ( ) : kind = 'svm' nn_k = NearestNeighbors ( n_neighbors = 6 ) svm = 'rnd' smote = SMOTE ( random_state = RND_SEED , kind = kind , k_neighbors = nn_k , svm_estimator = svm ) assert_raises ( ValueError , smote . fit_sample , X , Y )
test sample function with regular smote with a nn object .