#NEWLINE# def test_update_with_wrong_updates( self ) : #NEWLINE# #INDENT# test_metadata = { #NEWLINE# #INDENT# 'aggregate' : { #NEWLINE# #INDENT# 'status' : 'disable' , #NEWLINE# 'foo' : 'bar' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( self . bad_request , self . controller . update , self . req , '2' , body = test_metadata )