@@ -77,22 +77,22 @@ def assert_get_form_config(client: Client):
7777 if len (form .elements ) != 3 :
7878 raise Exception ("Test assert_get_form_config failed: Elements, got: " + len (form .elements ))
7979
80- if isinstance (form .elements [0 ], CommonFormElementInput ):
81- raise Exception ("Test assert_get_form_config failed: Elements.0, got: " + type ( form .elements [0 ]) )
80+ if ! isinstance (form .elements [0 ], CommonFormElementInput ):
81+ raise Exception ("Test assert_get_form_config failed: Elements.0, got: " + form .elements [0 ]. __class__ . __name__ )
8282
8383 input = form .elements [0 ]
8484 if input .type != "text" :
8585 raise Exception ("Test assert_get_form_config failed: Elements.0.Type, got: " + input .type )
8686
87- if isinstance (form .elements [1 ], CommonFormElementSelect ):
88- raise Exception ("Test assert_get_form_config failed: Elements.1, got: " + type ( form .elements [1 ]) )
87+ if ! isinstance (form .elements [1 ], CommonFormElementSelect ):
88+ raise Exception ("Test assert_get_form_config failed: Elements.1, got: " + form .elements [1 ]. __class__ . __name__ )
8989
9090 select = form .elements [1 ]
9191 if len (select .options ) != 2 :
9292 raise Exception ("Test assert_get_form_config failed: Elements.1.Options, got: " + len (select .options ))
9393
94- if isinstance (form .elements [2 ], CommonFormElementTextArea ):
95- raise Exception ("Test assert_get_form_config failed: Elements.2, got: " + type ( form .elements [2 ]) )
94+ if ! isinstance (form .elements [2 ], CommonFormElementTextArea ):
95+ raise Exception ("Test assert_get_form_config failed: Elements.2, got: " + form .elements [2 ]. __class__ . __name__ )
9696
9797
9898def assert_binary (client : Client ):
0 commit comments