#NEWLINE# def test_categorical( self ) : #NEWLINE# #INDENT# v = AttributeInfo . from_layer ( v . d , self . d . id [ 'c' ] ) #NEWLINE# assert_array_equal ( v , [ 0 , 1 , 0 , 0 , 1 ] ) #NEWLINE# assert ( v . id == self . d . id [ 'c' ] ) #NEWLINE# assert_array_equal ( v . categories , [ 'a' , 'b' ] )