def test_enn_fit():
 enn = EditedNearestNeighbours(random_state=RND_SEED)
 enn.fit(X, Y)
 assert_equal(enn.min_c_, 0)
 assert_equal(enn.maj_c_, 2)
 assert_equal(enn.stats_c_[0], 2)
 assert_equal(enn.stats_c_[1], 6)
 assert_equal(enn.stats_c_[2], 12)

def test_enn_fit ( ) : enn = EditedNearestNeighbours ( random_state = RND_SEED ) enn . fit ( X , Y ) assert_equal ( enn . min_c_ , 0 ) assert_equal ( enn . maj_c_ , 2 ) assert_equal ( enn . stats_c_ [ 0 ] , 2 ) assert_equal ( enn . stats_c_ [ 1 ] , 6 ) assert_equal ( enn . stats_c_ [ 2 ] , 12 )
test the fitting method .