#NEWLINE# def test_debug_info( self ) : #NEWLINE# #INDENT# stream_type = ( io . StringIO if PY3 else io . BytesIO ) #NEWLINE# with stream_type ( ) as out : #NEWLINE# #INDENT# print_debug_info ( Category . objects . all ( ) , file = out ) #NEWLINE# output = out . getvalue ( ) #NEWLINE# #UNINDENT# self . assertIn ( '1,0,,1,1,20' , output )