#NEWLINE# @ test . create_stubs ( { #NEWLINE# #INDENT# api . neutron : ( 'subnet_get' , ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_subnet_detail( self ) : #NEWLINE# #INDENT# subnet = self . subnets . first ( ) #NEWLINE# api . neutron . subnet_get ( IsA ( http . HttpRequest ) , subnet . id ) . AndReturn ( self . subnets . first ( ) ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# url = reverse ( 'horizon:admin:networks:subnets:detail' , args = [ subnet . id ] ) #NEWLINE# res = self . client . get ( url ) #NEWLINE# self . assertTemplateUsed ( res , 'project/networks/subnets/detail.html' ) #NEWLINE# self . assertEqual ( res . context [ 'subnet' ] . id , subnet . id )