#NEWLINE# def testListExperimentsView( self ) : #NEWLINE# #INDENT# url = reverse ( 'experiments.views.list_experiments' ) #NEWLINE# response = self . client . get ( url ) #NEWLINE# self . assertEquals ( response . status_code , 200 ) #NEWLINE# ( header , data ) = get_tables ( response . content ) [ 0 ] #NEWLINE# data . sort ( ) #NEWLINE# self . assertEquals ( [ 'Name' , 'Status' , 'Start Date' , 'End Date' ] , response ) #NEWLINE# self . assertEquals ( [ [ 'experiment 1' , 'Enabled' , unicode ( self . experiment1 . start_date ) , 'None' ] , [ 'experiment 2' , 'Disabled' , 'None' , 'None' ] , [ 'experiment 3' , 'Promoted' , unicode ( self . experiment3 . start_date ) , unicode ( self . experiment3 . end_date ) ] ] , data )