def test_ros_fit():
 ros = RandomOverSampler(random_state=RND_SEED)
 ros.fit(X, Y)
 assert_equal(ros.min_c_, 0)
 assert_equal(ros.maj_c_, 1)
 assert_equal(ros.stats_c_[0], 3)
 assert_equal(ros.stats_c_[1], 7)

def test_ros_fit ( ) : ros = RandomOverSampler ( random_state = RND_SEED ) ros . fit ( X , Y ) assert_equal ( ros . min_c_ , 0 ) assert_equal ( ros . maj_c_ , 1 ) assert_equal ( ros . stats_c_ [ 0 ] , 3 ) assert_equal ( ros . stats_c_ [ 1 ] , 7 )
test the fitting method .