def test_nearmiss_init():
 ratio = 1.0
 nm3 = NearMiss(ratio=ratio, random_state=RND_SEED, version=VERSION_NEARMISS)
 assert_equal(nm3.version, VERSION_NEARMISS)
 assert_equal(nm3.n_neighbors, 3)
 assert_equal(nm3.ratio, ratio)
 assert_equal(nm3.random_state, RND_SEED)

def test_nearmiss_init ( ) : ratio = 1.0 nm3 = NearMiss ( ratio = ratio , random_state = RND_SEED , version = VERSION_NEARMISS ) assert_equal ( nm3 . version , VERSION_NEARMISS ) assert_equal ( nm3 . n_neighbors , 3 ) assert_equal ( nm3 . ratio , ratio ) assert_equal ( nm3 . random_state , RND_SEED )
test the initialisation of the object .