#NEWLINE# def test_warning_about_colons_in_column_labels_for_axis( self ) : #NEWLINE# #INDENT# invalid_labels = [ '0' , '1' , '2:0' ] #NEWLINE# plot = figure ( x_range = invalid_labels , y_range = invalid_labels , plot_width = 900 , plot_height = 400 ) #NEWLINE# errors = plot . _check_colon_in_category_label ( ) #NEWLINE# self . assertEqual ( errors , [ ( 1003 , 'MALFORMED_CATEGORY_LABEL' , 'Category labels cannot contain colons' , ( '[range:x_range] [first_value: 2:0] [range:y_range] [first_value: 2:0] [renderer: Figure, ViewModel:Plot, ref _id: %s]' % plot . _id ) ) ] )