def test_cnn_fit():
 cnn = CondensedNearestNeighbour(random_state=RND_SEED)
 cnn.fit(X, Y)
 assert_equal(cnn.min_c_, 0)
 assert_equal(cnn.maj_c_, 2)
 assert_equal(cnn.stats_c_[0], 2)
 assert_equal(cnn.stats_c_[1], 6)
 assert_equal(cnn.stats_c_[2], 12)

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