#NEWLINE# def _post_network_with_bad_provider_attrs( self , ctx , bad_data , expect_errors = False ) : #NEWLINE# #INDENT# data = self . _prepare_net_data ( ) #NEWLINE# data . update ( bad_data ) #NEWLINE# env = { #NEWLINE# #INDENT# 'neutron.context' : ctx , #NEWLINE# #UNINDENT# } #NEWLINE# res = self . api . post ( test_base . _get_path ( 'networks' , fmt = self . fmt ) , self . serialize ( { #NEWLINE# #INDENT# 'network' : data , #NEWLINE# #UNINDENT# } ) , content_type = ( 'application/' + self . fmt ) , extra_environ = ctx , expect_errors = expect_errors ) #NEWLINE# return ( res , data )