#NEWLINE# def check_basic_figure_sanity( self , fig , exp_num_subplots , exp_title , exp_legend_exists , exp_xlabel , exp_ylabel , exp_zlabel ) : #NEWLINE# #INDENT# assert_is_instance ( fig , mpl . figure . Figure ) #NEWLINE# axes = fig . get_axes ( ) #NEWLINE# npt . assert_equal ( len ( exp_xlabel ) , exp_num_subplots ) #NEWLINE# ax = axes [ 0 ] #NEWLINE# npt . assert_equal ( ax . get_title ( ) , exp_title ) #NEWLINE# for tick_label in ( ( ax . get_xticklabels ( ) + ax . get_yticklabels ( ) ) + ax . get_zticklabels ( ) ) : #NEWLINE# #INDENT# npt . assert_equal ( tick_label . get_text ( ) , '' ) #NEWLINE# #UNINDENT# legend = ax . get_legend ( ) #NEWLINE# if exp_legend_exists : #NEWLINE# #INDENT# assert_true ( ( legend is not None ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert_true ( ( legend is None ) ) #NEWLINE# #UNINDENT# npt . assert_equal ( ax . get_xlabel ( ) , exp_xlabel ) #NEWLINE# npt . assert_equal ( ax . get_ylabel ( ) , exp_ylabel ) #NEWLINE# npt . assert_equal ( ax . get_zlabel ( ) , exp_zlabel )