#NEWLINE# def test_set_metadata_with_missing_metadata( self ) : #NEWLINE# #INDENT# body = { #NEWLINE# #INDENT# 'asdf' : { #NEWLINE# #INDENT# 'foo' : 'bar' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( self . bad_request , eval ( self . set_metadata ) , self . req , '1' , body = body )