#NEWLINE# @ test . create_stubs ( { #NEWLINE# #INDENT# api . neutron : ( 'network_get' , ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_network_update_get_exception( self ) : #NEWLINE# #INDENT# network = self . networks . first ( ) #NEWLINE# api . neutron . network_get ( IsA ( http . HttpRequest ) , network . id ) . AndRaise ( self . exceptions . neutron ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# url = reverse ( 'horizon:project:networks:update' , args = [ network . id ] ) #NEWLINE# res = self . client . get ( url ) #NEWLINE# redir_url = INDEX_URL #NEWLINE# self . assertRedirectsNoFollow ( res , redir_url )