#NEWLINE# def test_add_cmap( self ) : #NEWLINE# #INDENT# test_clst = tuple ( [ ( x , x , x ) for x in np . linspace ( 0 , 1 , ginga . cmap . min_cmap_len ) ] ) #NEWLINE# ginga . cmap . add_cmap ( 'test-name' , test_clst ) #NEWLINE# expected = ColorMap ( 'test-name' , test_clst ) #NEWLINE# actual = ginga . cmap . cmaps [ 'test-name' ] #NEWLINE# assert ( expected . name == actual . name ) #NEWLINE# assert ( expected . clst == actual . clst ) #NEWLINE# del ginga . cmap . cmaps [ 'test-name' ]