#NEWLINE# @ test . create_stubs ( { #NEWLINE# #INDENT# api . neutron : ( 'subnet_modify' , 'subnet_get' ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_subnet_update_post_gw_inconsistent( self ) : #NEWLINE# #INDENT# subnet = self . subnets . first ( ) #NEWLINE# api . neutron . subnet_get ( IsA ( http . HttpRequest ) , subnet . id ) . AndReturn ( subnet ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# gateway_ip = '2001:0DB8:0:CD30:123:4567:89AB:CDEF' #NEWLINE# form_data = tests . form_data_subnet ( subnet , gateway_ip = gateway_ip , allocation_pools = [ ] ) #NEWLINE# url = reverse ( 'horizon:admin:networks:editsubnet' , args = [ subnet . network_id , subnet . id ] ) #NEWLINE# res = self . client . post ( url , form_data ) #NEWLINE# self . assertContains ( res , 'Gateway IP and IP version are inconsistent.' )