#NEWLINE# @ test . create_stubs ( { #NEWLINE# #INDENT# cinder : ( 'volume_snapshot_get' , ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_update_volume_status_get( self ) : #NEWLINE# #INDENT# snapshot = self . cinder_volume_snapshots . first ( ) #NEWLINE# cinder . volume_snapshot_get ( IsA ( http . HttpRequest ) , snapshot . id ) . AndReturn ( snapshot ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# url = reverse ( 'horizon:admin:volumes:snapshots:update_status' , args = [ snapshot . id ] ) #NEWLINE# res = self . client . get ( url ) #NEWLINE# status_option = ( '<option value="%s"></option>' % snapshot . status ) #NEWLINE# self . assertNotContains ( res , status_option )