#NEWLINE# def test_iforest_works( ) : #NEWLINE# #INDENT# X = [ [ ( - 2 ) , ( - 1 ) ] , [ ( - 1 ) , ( - 1 ) ] , [ ( - 1 ) , ( - 2 ) ] , [ 1 , 1 ] , [ 1 , 2 ] , [ 2 , 1 ] , [ 6 , 3 ] , [ ( - 4 ) , 7 ] ] #NEWLINE# clf = IsolationForest ( random_state = rng ) #NEWLINE# clf . fit ( X ) #NEWLINE# pred = clf . predict ( X ) #NEWLINE# assert_greater ( np . min ( pred [ ( - 2 ) : ] ) , np . max ( X [ : ( - 2 ) ] ) )