#NEWLINE# def test_format_sparse_display( self ) : #NEWLINE# #INDENT# index = MultiIndex ( levels = [ [ 0 , 1 ] , [ 0 , 1 ] , [ 0 , 1 ] , [ 0 ] ] , labels = [ [ 0 , 0 , 0 , 1 , 1 , 1 ] , [ 0 , 0 , 1 , 0 , 0 , 1 ] , [ 0 , 1 , 0 , 0 , 1 , 0 ] , [ 0 , 0 , 0 , 0 , 0 , 0 ] ] ) #NEWLINE# result = index . format ( ) #NEWLINE# self . assertEqual ( self [ 3 ] , '1  0  0  0' )