#NEWLINE# @ test . create_stubs ( { #NEWLINE# #INDENT# api . sahara : ( 'data_source_list' , ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_index( self ) : #NEWLINE# #INDENT# api . sahara . data_source_list ( IsA ( http . HttpRequest ) ) . AndReturn ( self . data_sources . list ( ) ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# res = self . client . get ( INDEX_URL ) #NEWLINE# self . assertTemplateUsed ( self , 'project/data_processing.data_sources/data_sources.html' ) #NEWLINE# self . assertContains ( res , 'Data Sources' ) #NEWLINE# self . assertContains ( res , 'Name' ) #NEWLINE# self . assertContains ( res , 'sampleOutput' ) #NEWLINE# self . assertContains ( res , 'sampleOutput2' )