def test_nearmiss_wrong_version():
 version = 1000
 nm1 = NearMiss(version=version, random_state=RND_SEED)
 assert_raises(ValueError, nm1.fit_sample, X, Y)

def test_nearmiss_wrong_version ( ) : version = 1000 nm1 = NearMiss ( version = version , random_state = RND_SEED ) assert_raises ( ValueError , nm1 . fit_sample , X , Y )
test either if an error is raised when the version is unknown .