#NEWLINE# @ test . create_stubs ( { #NEWLINE# #INDENT# api . trove : ( 'instance_get' , 'flavor_get' ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_details( self ) : #NEWLINE# #INDENT# api . trove . instance_get ( IsA ( http . HttpRequest ) , IsA ( unicode ) ) . AndReturn ( self . databases . first ( ) ) #NEWLINE# api . trove . flavor_get ( IsA ( http . HttpRequest ) , IsA ( str ) ) . AndReturn ( self . flavors . first ( ) ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# res = self . client . get ( DETAILS_URL ) #NEWLINE# self . assertTemplateUsed ( res , 'project/databases/detail.html' )