def test_invalid_box_specs ( self ) :
    box_specs_list = [ [ ( 1.0 , 1.0 ) , ( 2.0 , 1.0 ) , ( 1.0 , 0.5 ] ,
        [ ( 1.0 , 1.0 ) , ( 1.0 , 0.5 , .3 ) ] ]
    with self . assertRaises ( ValueError ) :
        ag . MultipleGridAnchorGenerator ( box_specs_list )
    box_specs_list = [ ( 1.0 , 1.0 ) , ( 2.0 , 1.0 ) , ( 1.0 , 0.5 ) ]
    with self . assertRaises ( ValueError ) :
        ag . MultipleGridAnchorGenerator ( box_specs_list )

def test_invalid_box_specs ( self ) :
    box_specs_list = [ [ ( 1.0 , 1.0 ) , ( 2.0 , 1.0 ) , ( 1.0 , 0.5 ) ] ,
        [ ( 1.0 , 1.0 ) , ( 1.0 , 0.5 , .3 ) ] ]
    with self . assertRaises ( ValueError ) :
        ag . MultipleGridAnchorGenerator ( box_specs_list )
    box_specs_list = [ ( 1.0 , 1.0 ) , ( 2.0 , 1.0 ) , ( 1.0 , 0.5 ) ]
    with self . assertRaises ( ValueError ) :
        ag . MultipleGridAnchorGenerator ( box_specs_list )

次に示すpythonコードの誤りを修正しなさい。