#NEWLINE# def test_index_view_with_no_polls( self ) : #NEWLINE# #INDENT# '\n        If no polls exist, an appropriate message should be displayed.\n        ' #NEWLINE# response = self . client . get ( reverse ( 'polls:index' ) ) #NEWLINE# self . assertEqual ( self . status_code , 200 ) #NEWLINE# self . assertContains ( response , 'No polls are available.' ) #NEWLINE# self . assertQuerysetEqual ( response . context [ 'latest_poll_list' ] , [ ] )