def test_tl_fit():
 tl = TomekLinks(random_state=RND_SEED)
 tl.fit(X, Y)
 assert_equal(tl.min_c_, 0)
 assert_equal(tl.maj_c_, 1)
 assert_equal(tl.stats_c_[0], 7)
 assert_equal(tl.stats_c_[1], 13)

def test_tl_fit ( ) : tl = TomekLinks ( random_state = RND_SEED ) tl . fit ( X , Y ) assert_equal ( tl . min_c_ , 0 ) assert_equal ( tl . maj_c_ , 1 ) assert_equal ( tl . stats_c_ [ 0 ] , 7 ) assert_equal ( tl . stats_c_ [ 1 ] , 13 )
test the fitting method .