#NEWLINE# def test_export_without_format( self ) : #NEWLINE# #INDENT# 'Export without a format renders to a simple template' #NEWLINE# self . client . login ( username = 'admin' , password = 'admin' ) #NEWLINE# resp = self . client . get ( reverse ( 'data_exports:export_view' , kwargs = { #NEWLINE# #INDENT# 'slug' : self . empty_export . slug , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . assertContains ( resp , 'No columns where defined' ) #NEWLINE# resp = self . client . get ( reverse ( 'data_exports:export_view' , kwargs = { #NEWLINE# #INDENT# 'slug' : self . export . slug , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . assertNotContains ( resp , 'No columns where defined' ) #NEWLINE# for c in self . export . column_set . all ( ) : #NEWLINE# #INDENT# self . assertContains ( resp , ( c . label if c . label else c ) )