#NEWLINE# def test_ovr_pipeline( ) : #NEWLINE# #INDENT# clf = Pipeline ( [ ( 'tree' , DecisionTreeClassifier ( ) ) ] ) #NEWLINE# ovr_pipe = OneVsRestClassifier ( ovr_pipe ) #NEWLINE# ovr_pipe . fit ( iris . data , iris . target ) #NEWLINE# ovr = OneVsRestClassifier ( DecisionTreeClassifier ( ) ) #NEWLINE# ovr . fit ( iris . data , iris . target ) #NEWLINE# assert_array_equal ( ovr . predict ( iris . data ) , ovr_pipe . predict ( iris . data ) )