@@ -58,7 +58,7 @@ def test_are_flows_equal(self):
5858 custom_name = 'Test' )
5959
6060 # Test most important values that can be set by a user
61- openml .flows .functions .check_flows_equal (flow , flow )
61+ openml .flows .functions .assert_flows_equal (flow , flow )
6262 for attribute , new_value in [('name' , 'Tes' ),
6363 ('description' , 'Test flo' ),
6464 ('external_version' , '2' ),
@@ -70,11 +70,11 @@ def test_are_flows_equal(self):
7070 new_flow = copy .deepcopy (flow )
7171 setattr (new_flow , attribute , new_value )
7272 self .assertNotEqual (getattr (flow , attribute ), getattr (new_flow , attribute ))
73- self .assertRaises (ValueError , openml .flows .functions .check_flows_equal ,
73+ self .assertRaises (ValueError , openml .flows .functions .assert_flows_equal ,
7474 flow , new_flow )
7575
7676 # Test that the API ignores several keys when comparing flows
77- openml .flows .functions .check_flows_equal (flow , flow )
77+ openml .flows .functions .assert_flows_equal (flow , flow )
7878 for attribute , new_value in [('flow_id' , 1 ),
7979 ('uploader' , 1 ),
8080 ('version' , 1 ),
@@ -86,27 +86,27 @@ def test_are_flows_equal(self):
8686 new_flow = copy .deepcopy (flow )
8787 setattr (new_flow , attribute , new_value )
8888 self .assertNotEqual (getattr (flow , attribute ), getattr (new_flow , attribute ))
89- openml .flows .functions .check_flows_equal (flow , new_flow )
89+ openml .flows .functions .assert_flows_equal (flow , new_flow )
9090
9191 # Now test for parameters
9292 flow .parameters ['abc' ] = 1.0
9393 flow .parameters ['def' ] = 2.0
94- openml .flows .functions .check_flows_equal (flow , flow )
94+ openml .flows .functions .assert_flows_equal (flow , flow )
9595 new_flow = copy .deepcopy (flow )
9696 new_flow .parameters ['abc' ] = 3.0
97- self .assertRaises (ValueError , openml .flows .functions .check_flows_equal ,
97+ self .assertRaises (ValueError , openml .flows .functions .assert_flows_equal ,
9898 flow , new_flow )
9999
100100 # Now test for components (subflows)
101101 parent_flow = copy .deepcopy (flow )
102102 subflow = copy .deepcopy (flow )
103103 parent_flow .components ['subflow' ] = subflow
104- openml .flows .functions .check_flows_equal (parent_flow , parent_flow )
104+ openml .flows .functions .assert_flows_equal (parent_flow , parent_flow )
105105 self .assertRaises (ValueError ,
106- openml .flows .functions .check_flows_equal ,
106+ openml .flows .functions .assert_flows_equal ,
107107 parent_flow , subflow )
108108 new_flow = copy .deepcopy (parent_flow )
109109 new_flow .components ['subflow' ].name = 'Subflow name'
110110 self .assertRaises (ValueError ,
111- openml .flows .functions .check_flows_equal ,
111+ openml .flows .functions .assert_flows_equal ,
112112 parent_flow , new_flow )
0 commit comments