def test_renn_fit():
 renn = RepeatedEditedNearestNeighbours(random_state=RND_SEED)
 renn.fit(X, Y)
 assert_equal(renn.min_c_, 0)
 assert_equal(renn.maj_c_, 2)
 assert_equal(renn.stats_c_[0], 4)
 assert_equal(renn.stats_c_[1], 16)
 assert_equal(renn.stats_c_[2], 20)

def test_renn_fit ( ) : renn = RepeatedEditedNearestNeighbours ( random_state = RND_SEED ) renn . fit ( X , Y ) assert_equal ( renn . min_c_ , 0 ) assert_equal ( renn . maj_c_ , 2 ) assert_equal ( renn . stats_c_ [ 0 ] , 4 ) assert_equal ( renn . stats_c_ [ 1 ] , 16 ) assert_equal ( renn . stats_c_ [ 2 ] , 20 )
test the fitting method .