#NEWLINE# def test_invalid_attribute_field( self ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'network' : { #NEWLINE# #INDENT# 'invalid_key1' : 'foo1' , #NEWLINE# 'invalid_key2' : 'foo2' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# res = self . api . put ( _get_path ( 'networks' , id = _uuid ( ) ) , self . serialize ( data ) , content_type = ( 'application/' + self . fmt ) , expect_errors = True ) #NEWLINE# self . assertEqual ( 400 , res . status_int )