#NEWLINE# @ test . create_stubs ( { #NEWLINE# #INDENT# api . cinder : ( 'volume_type_get' , ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_extra_create_get( self ) : #NEWLINE# #INDENT# vol_type = self . cinder_volume_types . first ( ) #NEWLINE# create_url = reverse ( 'horizon:admin:volumes:volume_types:extras:create' , args = [ vol_type . id ] ) #NEWLINE# api . cinder . volume_type_get ( IsA ( http . HttpRequest ) , vol_type . id ) . AndReturn ( vol_type ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# resp = self . client . get ( create_url ) #NEWLINE# self . assertEqual ( resp . status_code , 200 ) #NEWLINE# self . assertTemplateUsed ( self , 'admin/volumes/volume_types/extras/create.html' )