#NEWLINE# @ test . create_stubs ( { #NEWLINE# #INDENT# api . glance : ( 'image_list_detailed' , ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_index_error( self ) : #NEWLINE# #INDENT# api . glance . image_list_detailed ( IsA ( http . HttpRequest ) , marker = None ) . AndRaise ( self . exceptions . glance ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# res = self . client . get ( INDEX_URL ) #NEWLINE# self . assertTemplateUsed ( res , 'project/images/index.html' )