#NEWLINE# @ test . create_stubs ( { #NEWLINE# #INDENT# api . trove : ( 'instance_list' , ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_launch_backup_exception( self ) : #NEWLINE# #INDENT# api . trove . instance_list ( IsA ( http . HttpRequest ) ) . AndRaise ( self . exceptions . trove ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# res = self . client . get ( BACKUP_URL ) #NEWLINE# self . assertMessageCount ( res , error = 1 ) #NEWLINE# self . assertTemplateUsed ( res , 'project/database_backups/backup.html' )