#NEWLINE# def test_get_labels_lut_empty_labels( self ) : #NEWLINE# #INDENT# lut = du . get_labels_lut ( [ ] , lut . subset ) #NEWLINE# assert_is_instance ( lut , np . ndarray ) #NEWLINE# assert_equals ( lut . dtype , int ) #NEWLINE# assert_equals ( lut . ndim , 1 ) #NEWLINE# assert_equals ( lut . shape , ( 1 , ) ) #NEWLINE# assert_list_equal ( lut . tolist ( ) , [ 0 ] )